php 8.3, redis, y apache
790
##################################################
#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
##################################################
#PARA LA VERSIÓN 1.0 se tiene instalado php 8.3, redis, y apache
#Se deben crear los archivos index.html e index.php como prueba de funcionamiento
#Instrucciones para crear el contenedor
#Inicio del Docker File#########
FROM debian:stable
# Install Apache and PHP
RUN apt-get update && apt-get install -y apache2
RUN apt-get install -y curl
RUN apt-get install -y git
RUN apt-get install -y unzip
RUN a2enmod rewrite
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 openssl
RUN apt-get install -y gpg
RUN apt-get install -y vim
RUN apt-get install -y software-properties-common
#Instalacion de redis
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list
RUN apt-get update
RUN apt-get install -y redis
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'
#Instalacion de nodejs
RUN apt-get install nodejs -y
RUN apt-get install npm -y
#Instalacion de modulos de php 8.3
RUN apt-get update
RUN apt install -y php8.3
RUN apt install -y php8.3-common
RUN apt install -y php8.3-cli
RUN apt install -y php8.3-intl
RUN apt install -y php8.3-bcmath
RUN apt install -y php8.3-bz2
RUN apt install -y php8.3-calendar
RUN apt install -y php8.3-ctype
RUN apt install -y php8.3-curl
RUN apt install -y php8.3-dom
RUN apt install -y php8.3-exif
RUN apt install -y php8.3-fileinfo
RUN apt install -y php8.3-ftp
RUN apt install -y php8.3-gd
RUN apt install -y php8.3-gettext
RUN apt install -y php8.3-iconv
RUN apt install -y php8.3-ldap
RUN apt install -y php8.3-mbstring
RUN apt install -y php8.3-pdo
RUN apt install -y php8.3-pgsql
RUN apt install -y php8.3-Phar
RUN apt install -y php8.3-posix
RUN apt install -y php8.3-readline
RUN apt install -y php8.3-shmop
RUN apt install -y php8.3-simplexml
RUN apt install -y php8.3-soap
RUN apt install -y php8.3-sockets
RUN apt install -y php8.3-sqlite3
RUN apt install -y php8.3-ssh2
RUN apt install -y php8.3-sysvmsg
RUN apt install -y php8.3-sysvsem
RUN apt install -y php8.3-tokenizer
RUN apt install -y php8.3-xml
RUN apt install -y php8.3-xmlreader
RUN apt install -y php8.3-xmlwriter
RUN apt install -y php8.3-xsl
RUN apt install -y php8.3-opcache
RUN apt install -y php8.3-zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /var/www/html
#Directorio de trabajo laravel
RUN mkdir /var/www/html/public
# Copy the index.html file to the Apache document root
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"]
#Fin del archivo Dockerfile
############################################################
############################################################
# Modificar el archivo 000-default.conf, dentro del contenedor para que funcione con laravel
#ARCHIVO 000-default.conf
#
< VirtualHost *:80 >
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
< /VirtualHost >
############################################################
############################################################
#################################################
#Para construir la aplicacion cambiar su usuario y nombre de imagen al gusto
#docker build -t jchamu/php83:1.0 .
#docker push jchamu/php83:1.0
#################################################
###Probar la Imagen
##NOTA CREAR los archivos index.php e index.html
# docker run -d -p 80:80 jchamu/php83:1.0
# wget http://127.0.0.1/index.php
################################################
##################################################
#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
##################################################
#PARA LA VERSIÓN 1.1 se tiene instalado php 8.3, redis, y apache
#Se deben crear los archivos index.html e index.php como prueba de funcionamiento
#Instrucciones para crear el contenedor
#Inicio del Docker File
#Se anexaron las librerías de mysql, imagemagick en php
#Se anexo ssl en apache
#Se anexo vi en el contenedor para editar archivos de configuración directamente
#
########
FROM debian:stable
# Install Apache and PHP
RUN apt-get update && apt-get install -y apache2
RUN apt-get install -y curl
RUN apt-get install -y git
RUN apt-get install -y unzip
RUN apt-get install -y vim
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 openssl
RUN apt-get install -y gpg
RUN apt-get install -y software-properties-common
RUN a2enmod ssl
RUN a2enmod rewrite
#Instalacion de redis
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/redis.list
RUN apt-get update
RUN apt-get install -y redis
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'
#Instalacion de nodejs
RUN apt-get install nodejs -y
RUN apt-get install npm -y
#Instalacion de modulos de php 8.3
RUN apt-get update
RUN apt install -y php8.3
RUN apt install -y php8.3-common
RUN apt install -y php8.3-cli
RUN apt install -y php8.3-intl
RUN apt install -y php8.3-bcmath
RUN apt install -y php8.3-bz2
RUN apt install -y php8.3-calendar
RUN apt install -y php8.3-ctype
RUN apt install -y php8.3-curl
RUN apt install -y php8.3-dom
RUN apt install -y php8.3-exif
RUN apt install -y php8.3-fileinfo
RUN apt install -y php8.3-ftp
RUN apt install -y php8.3-gd
RUN apt install -y php8.3-imagick
RUN apt install -y php8.3-redis
RUN apt install -y php8.3-gettext
RUN apt install -y php8.3-iconv
RUN apt install -y php8.3-ldap
RUN apt install -y php8.3-mbstring
RUN apt install -y php8.3-pdo
RUN apt install -y php8.3-pgsql
RUN apt install -y php8.3-mysql
RUN apt install -y php8.3-Phar
RUN apt install -y php8.3-posix
RUN apt install -y php8.3-readline
RUN apt install -y php8.3-shmop
RUN apt install -y php8.3-simplexml
RUN apt install -y php8.3-soap
RUN apt install -y php8.3-sockets
RUN apt install -y php8.3-sqlite3
RUN apt install -y php8.3-ssh2
RUN apt install -y php8.3-sysvmsg
RUN apt install -y php8.3-sysvsem
RUN apt install -y php8.3-tokenizer
RUN apt install -y php8.3-xml
RUN apt install -y php8.3-xmlreader
RUN apt install -y php8.3-xmlwriter
RUN apt install -y php8.3-xsl
RUN apt install -y php8.3-opcache
RUN apt install -y php8.3-zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /var/www/html
#Directorio de trabajo laravel
RUN mkdir /var/www/html/public
# Copy the index.html file to the Apache document root
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"]
#FIN ARCHIVO DOCKER
#################################################
#Para construir la aplicacion cambiar su usuario y nombre de imagen al gusto
#docker build -t jchamu/php83:1.1 .
#docker push jchamu/php83:1.1
#################################################
###Probar la Imagen
##NOTA CREAR los archivos index.php e index.html
# docker run -d -p 80:80 jchamu/php83:1.1
# wget http://127.0.0.1/index.php
################################################
##########################################################
#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
##########################################################
#PARA LA VERSIÓN 1.2 se tiene instalado php 8.3, redis, y apache y se agrego imap a php para que funcione limesurvey
#Se deben crear los archivos index.html e index.php como prueba de funcionamiento
#Instrucciones para crear el contenedor
#Inicio del Docker File
#Se anexaron las librerías de mysql, imagemagick en php
#Se anexo ssl en apache
#Se anexo vi en el contenedor para editar archivos de configuración directamente
#
##########################################################
Content type
Image
Digest
sha256:343609c33…
Size
481.3 MB
Last updated
over 1 year ago
docker pull jchamu/php83:1.3