19 lines
489 B
Docker
19 lines
489 B
Docker
FROM reg.cadoles.com/envole/nineapache:8.1
|
|
|
|
COPY ./misc/images/app/app-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 . .
|
|
|
|
# Installation des dépendances composer
|
|
RUN composer install --no-interaction
|
|
|
|
RUN mkdir -p /app/var
|
|
RUN chown apache /app/var -R
|
|
RUN chmod u+w /app/var -R
|
|
RUN chmod g+w /app/var -R
|
|
|
|
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh
|