2024-06-30 12:06:40 +02:00
|
|
|
FROM reg.cadoles.com/envole/nineapache:8.1
|
|
|
|
|
2024-07-27 09:15:34 +02:00
|
|
|
COPY ./misc/docker/apache.conf /etc/apache2/conf.d/nine/site.conf
|
|
|
|
|
2024-06-30 12:06:40 +02:00
|
|
|
RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/crontabs/root
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
|
2024-07-27 09:15:34 +02:00
|
|
|
# Installation des dépendances composer
|
|
|
|
RUN composer install --no-interaction
|
2024-06-30 12:06:40 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /app/var
|
|
|
|
RUN chown apache /app/var -R
|
|
|
|
RUN chmod u+w /app/var -R
|
|
|
|
|
2024-07-27 09:15:34 +02:00
|
|
|
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh
|