javifelices

Dockerfile (Debian - Apache + PHP7) UDEMY Sección 2

Sep 9th, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. FROM debian:stable
  2.  
  3. RUN \
  4. apt-get update && \
  5. apt-get install -y \
  6. apache2 \
  7. wget \
  8. apt-transport-https \
  9. lsb-release \
  10. ca-certificates && \
  11. wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
  12. sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > \
  13. /etc/apt/sources.list.d/php.list' && \
  14. apt-get update && \
  15. apt-get install -y \
  16. php7.2 \
  17. php7.2-common \
  18. php7.2-cli \
  19. php7.2-fpm \
  20. php7.2-gd \
  21. php7.2-xml \
  22. php7.2-curl \
  23. php7.2-mbstring \
  24. libapache2-mod-php \
  25. php7.2-zip
  26.  
  27. LABEL version=2.0
  28. LABEL description="Prueba de conceptos Curso UDEMY de Docker. Apache + PHP en Debian"
  29. LABEL vendor="Javi Felices"
  30.  
  31. EXPOSE 80
  32.  
  33. COPY index.php /var/www/html/index.php
  34.  
  35. CMD apachectl -DFOREGROUND
Advertisement
Add Comment
Please, Sign In to add comment