php version 7.4 apache 2, node-v18.18.2-linux-x64, debian stable
120
#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
#Contenido del archivo y la imagen Dockerfile version 1.0 PHP 7.4
#Contiene php 7.4, Apache2 y node-v18.18.2-linux-x64 (Se descargo por separa para incluirlo)
#Inicio
FROM debian:stable
# Install Apache and PHP
RUN apt-get update && apt-get install -y apache2
RUN apt-get install curl
RUN apt-get install -y lsb-release
RUN apt-get install -y ca-certificates
RUN apt-get install -y lsb-release
RUN apt-get install -y wget
RUN apt-get install -y tar
RUN curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
RUN apt-get update
COPY node-v18.18.2-linux-x64 /opt/node-v18.18.2-linux-x64
RUN mv /opt/node-v18.18.2-linux-x64 /opt/node
RUN ln -s /opt/nodejs/bin/node /usr/bin/node
RUN echo "export PATH=/opt/node/bin:$PATH" >> /root/.bashrc
RUN apt-get update
RUN apt install -y php7.4
RUN apt install -y php7.4-cli
RUN apt install -y php7.4-intl
RUN apt install -y php7.4-bcmath
RUN apt install -y php7.4-bz2
RUN apt install -y php7.4-calendar
RUN apt install -y php7.4-ctype
RUN apt install -y php7.4-curl
RUN apt install -y php7.4-dom
RUN apt install -y php7.4-exif
RUN apt install -y php7.4-fileinfo
RUN apt install -y php7.4-ftp
RUN apt install -y php7.4-gd
RUN apt install -y php7.4-gettext
RUN apt install -y php7.4-iconv
RUN apt install -y php7.4-ldap
RUN apt install -y php7.4-mbstring
RUN apt install -y php7.4-mcrypt
RUN apt install -y php7.4-pdo
RUN apt install -y php7.4-pgsql
RUN apt install -y php7.4-Phar
RUN apt install -y php7.4-posix
RUN apt install -y php7.4-readline
RUN apt install -y php7.4-shmop
RUN apt install -y php7.4-simplexml
RUN apt install -y php7.4-soap
RUN apt install -y php7.4-sockets
RUN apt install -y php7.4-sqlite3
RUN apt install -y php7.4-ssh2
RUN apt install -y php7.4-sysvmsg
RUN apt install -y php7.4-sysvsem
RUN apt install -y php7.4-tokenizer
RUN apt install -y php7.4-xml
RUN apt install -y php7.4-xmlreader
RUN apt install -y php7.4-xmlwriter
RUN apt install -y php7.4-xsl
RUN apt install -y php7.4-opcache
RUN apt install -y php7.4-zip
RUN apt install -y php7.4-mysql
RUN apt install -y php7.4-mysqli
RUN apt-get update -y
WORKDIR /var/www/html
##NOTA CREAR los archivos index.php e index.html#############
COPY index.html /var/www/html
COPY index.php /var/www/html
# Expose port 80 for Apache
EXPOSE 80
# Run Apache in the foreground
CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]
#Para construir la imagen, cambiar el usuario y versión para adaptarlo a sus necesidades
#docker build -t jchamu/php74-usuario3:1.1 .
Content type
Image
Digest
sha256:e2bedf760…
Size
225.4 MB
Last updated
almost 3 years ago
docker pull jchamu/php74-usuario3:1.1