You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

18 lines
474 B

FROM "php:7.1-apache"
# TODO: basculer sur www-data
RUN apt-get -y autoremove --purge && \
apt-get -y clean all && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
"/var/log/"{apt/*,dpkg.log} \
"/var/www/html"
COPY "src" "/var/www/html"
RUN chown -R "www-data":"www-data" "/var/www/html"
HEALTHCHECK --interval=10s \
CMD curl --fail "http://localhost" || exit 1