Dockerfile 1002 B

1234567891011121314151617181920212223242526272829303132
  1. FROM debian:latest
  2. MAINTAINER Volodymyr Tkach <vladimirok5959@gmail.com>
  3. ENV PHP_VERSION=7.4
  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.4-fpm && \
  9. apt-get install -y php7.4-cgi && \
  10. apt-get install -y php7.4-gd && \
  11. apt-get install -y php7.4-zip && \
  12. apt-get install -y php7.4-curl && \
  13. apt-get install -y php7.4-mysql && \
  14. apt-get install -y php7.4-sqlite && \
  15. apt-get install -y php7.4-mbstring && \
  16. /etc/init.d/nginx stop && \
  17. /etc/init.d/php7.4-fpm stop && \
  18. rm /var/www/html/* && \
  19. echo "" >> /root/.profile && \
  20. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.profile && \
  21. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.profile && \
  22. echo "" >> /root/.bashrc && \
  23. echo "TIME_ZONE=\$(cat /etc/timezone)" >> /root/.bashrc && \
  24. echo "export TZ=\"\${TIME_ZONE}\"" >> /root/.bashrc
  25. COPY --chown=root:root ./docker /
  26. RUN chown www-data:www-data /var/www/html/index.php
  27. CMD /start.sh