2024-09-17 14:02:17 +02:00
|
|
|
FROM reg.cadoles.com/envole/nineapache:7.4
|
|
|
|
RUN apk add python3 python2
|
|
|
|
|
|
|
|
COPY ./misc/docker/apache.conf /etc/apache2/conf.d/nine/site.conf
|
|
|
|
|
|
|
|
RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/crontabs/root
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2024-10-31 14:59:51 +01:00
|
|
|
RUN rm -rf /app/public/uploads/*
|
2024-09-17 14:02:17 +02:00
|
|
|
|
|
|
|
# Installation des dépendances composer
|
|
|
|
RUN composer install --no-interaction
|
|
|
|
|
|
|
|
RUN mkdir -p /app/public/uploads
|
|
|
|
RUN chown apache /app/public/uploads -R
|
|
|
|
RUN chmod u+w /app/public/uploads -R
|
2024-09-21 12:40:18 +02:00
|
|
|
RUN chmod g+w /app/public/uploads -R
|
2024-09-17 14:02:17 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /app/var
|
|
|
|
RUN chown apache /app/var -R
|
|
|
|
RUN chmod u+w /app/var -R
|
2024-09-21 12:40:18 +02:00
|
|
|
RUN chmod g+w /app/var -R
|
2024-09-17 14:02:17 +02:00
|
|
|
|
|
|
|
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh
|