Dockerfile 881 B

1234567891011121314151617181920212223242526272829
  1. FROM debian:latest
  2. MAINTAINER Vova Tkach <vladimirok5959@gmail.com>
  3. ENV PHP_VERSION=7.3
  4. ARG DEBIAN_FRONTEND=noninteractive
  5. RUN apt-get -y update && \
  6. apt-get -y upgrade && \
  7. apt-get install -y nginx && \
  8. apt-get install -y php7.3-fpm && \
  9. apt-get install -y php7.3-cgi && \
  10. apt-get install -y php7.3-gd && \
  11. apt-get install -y php7.3-mysql && \
  12. apt-get install -y php7.3-curl && \
  13. /etc/init.d/nginx stop && \
  14. /etc/init.d/php7.3-fpm stop && \
  15. rm /var/www/html/* && \
  16. echo "" >> /root/.profile && \
  17. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.profile && \
  18. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.profile && \
  19. echo "" >> /root/.bashrc && \
  20. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.bashrc && \
  21. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.bashrc
  22. COPY --chown=root:root ./docker /
  23. RUN chown www-data:www-data /var/www/html/index.php
  24. CMD /start.sh