Sign inSign up

jchamu/php8-usuario3

By jchamu

•Updated almost 3 years ago

Imagen que tiene php 8.2, debian 12 y apache

Image
Developer tools
Web servers
0

428

jchamu/php8-usuario3 repository overview

#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
##################################################
#La versión 1.0 contiene solo PHP y apache
##################################################
#PARA LA VERSIÓN 1.1  Se agrego npm,nodejs,git,composer
##################################################
##################################################
#PARA LA VERSIÓN 1.2  Se agrego el directorio /var/www/html/public
#y se modifico el archivo  /etc/apache2/sites-enabled/000-default.conf
#para que apunte a  /var/www/html/public y pueda funcionar laravel
#sin tener que modificar parametros en las diferentes equipos.
#esta versión es especificamente para laravel
##################################################
#Contenido del archivo y la imagen Dockerfile version 1.0
#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 lsb-release
RUN apt-get install ca-certificates
RUN apt-get install lsb-release



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

RUN apt install -y php
RUN apt install -y php8.2-intl
RUN apt install -y php8.2-bcmath
RUN apt install -y php8.2-bz2
RUN apt install -y php8.2-calendar
RUN apt install -y php8.2-ctype
RUN apt install -y php8.2-curl
RUN apt install -y php8.2-dom
RUN apt install -y php8.2-exif
RUN apt install -y php8.2-fileinfo
RUN apt install -y php8.2-ftp
RUN apt install -y php8.2-gd
RUN apt install -y php8.2-gettext
RUN apt install -y php8.2-iconv
RUN apt install -y php8.2-ldap
RUN apt install -y php8.2-mbstring
RUN apt install -y php8.2-mcrypt
RUN apt install -y php8.2-pdo
RUN apt install -y php8.2-pgsql
RUN apt install -y php8.2-Phar
RUN apt install -y php8.2-posix
RUN apt install -y php8.2-readline
RUN apt install -y php8.2-shmop
RUN apt install -y php8.2-simplexml
RUN apt install -y php8.2-soap
RUN apt install -y php8.2-sockets
RUN apt install -y php8.2-sqlite3
RUN apt install -y php8.2-ssh2
RUN apt install -y php8.2-sysvmsg
RUN apt install -y php8.2-sysvsem
RUN apt install -y php8.2-tokenizer
RUN apt install -y php8.2-xml
RUN apt install -y php8.2-xmlreader
RUN apt install -y php8.2-xmlwriter
RUN apt install -y php8.2-xsl
RUN apt install -y php8.2-opcache
RUN apt install -y php8.2-zip php8.2-cli


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"]
#FIN
#################################################
#Para construir la aplicacion cambiar su usuario y nombre de imagen al gusto
#docker build -t jchamu/php8-usuario3:1.0 .
#docker push jchamu/php8-usuario3:1.0
#################################################
###Probar la Imagen
##NOTA CREAR los archivos index.php e index.html
#docker run -d -p 80:80  dbnapachephp: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 agrego npm,nodejs,git,composer
#El archivo Dockerfile para la versión 1.1 es el siguiente
##################################################
#INICIO Dockerfile
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 lsb-release
RUN apt-get install ca-certificates
RUN apt-get install lsb-release

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/s
ources.list.d/php.list'

RUN apt-get install nodejs -y
RUN apt-get install npm -y

RUN apt-get update

RUN apt install -y php8.2
RUN apt install -y php8.2-cli
RUN apt install -y php8.2-intl
RUN apt install -y php8.2-bcmath
RUN apt install -y php8.2-bz2
RUN apt install -y php8.2-calendar
RUN apt install -y php8.2-ctype
RUN apt install -y php8.2-curl
RUN apt install -y php8.2-dom
RUN apt install -y php8.2-exif
RUN apt install -y php8.2-fileinfo
RUN apt install -y php8.2-ftp
RUN apt install -y php8.2-gd
RUN apt install -y php8.2-gettext
RUN apt install -y php8.2-iconv
RUN apt install -y php8.2-ldap
RUN apt install -y php8.2-mbstring
RUN apt install -y php8.2-mcrypt
RUN apt install -y php8.2-pdo
RUN apt install -y php8.2-pgsql
RUN apt install -y php8.2-Phar
RUN apt install -y php8.2-posix
RUN apt install -y php8.2-readline
RUN apt install -y php8.2-shmop
RUN apt install -y php8.2-simplexml
RUN apt install -y php8.2-soap
RUN apt install -y php8.2-sockets
RUN apt install -y php8.2-sqlite3
RUN apt install -y php8.2-ssh2
RUN apt install -y php8.2-sysvmsg
RUN apt install -y php8.2-sysvsem
RUN apt install -y php8.2-tokenizer
RUN apt install -y php8.2-xml
RUN apt install -y php8.2-xmlreader
RUN apt install -y php8.2-xmlwriter
RUN apt install -y php8.2-xsl
RUN apt install -y php8.2-opcache
RUN apt install -y php8.2-zip


RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer


WORKDIR /var/www/html

# 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"]
#INICIO Dockerfile
##################################################
##################################################
#################################################
###Probar la Imagen
##NOTA CREAR los archivos index.php e index.html
#Para crearla en su equipo  (cambiar su usuario y su versión)
# docker build -t jchamu/php8-usuario3:1.1 .
#Para subirla en caso de modificarla (cambiar su usuario y su versión)
# docker push jchamu/php8-usuario3:1.1
#docker run -d -p 80:80 jchamu/dbnapachephp: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 agrego el directorio /var/www/html/public
#y se modifico el archivo  /etc/apache2/sites-enabled/000-default.conf
# para que apunte a  /var/www/html/public y pueda funcionar laravel
# sin tener que modificar parametros en las diferentes equipos.
#esta versión es especificamente para laravel
##################################################

#INICIO Dockerfile
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 lsb-release
RUN apt-get install ca-certificates
RUN apt-get install lsb-release

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 install nodejs -y
RUN apt-get install npm -y

RUN apt-get update

RUN apt install -y php8.2
RUN apt install -y php8.2-cli
RUN apt install -y php8.2-intl
RUN apt install -y php8.2-bcmath
RUN apt install -y php8.2-bz2
RUN apt install -y php8.2-calendar
RUN apt install -y php8.2-ctype
RUN apt install -y php8.2-curl
RUN apt install -y php8.2-dom
RUN apt install -y php8.2-exif
RUN apt install -y php8.2-fileinfo
RUN apt install -y php8.2-ftp
RUN apt install -y php8.2-gd
RUN apt install -y php8.2-gettext
RUN apt install -y php8.2-iconv
RUN apt install -y php8.2-ldap
RUN apt install -y php8.2-mbstring
RUN apt install -y php8.2-mcrypt
RUN apt install -y php8.2-pdo
RUN apt install -y php8.2-pgsql
RUN apt install -y php8.2-Phar
RUN apt install -y php8.2-posix
RUN apt install -y php8.2-readline
RUN apt install -y php8.2-shmop
RUN apt install -y php8.2-simplexml
RUN apt install -y php8.2-soap
RUN apt install -y php8.2-sockets
RUN apt install -y php8.2-sqlite3
RUN apt install -y php8.2-ssh2
RUN apt install -y php8.2-sysvmsg
RUN apt install -y php8.2-sysvsem
RUN apt install -y php8.2-tokenizer
RUN apt install -y php8.2-xml
RUN apt install -y php8.2-xmlreader
RUN apt install -y php8.2-xmlwriter
RUN apt install -y php8.2-xsl
RUN apt install -y php8.2-opcache
RUN apt install -y php8.2-zip


RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer


WORKDIR /var/www/html
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
**COPY 000-default.conf /etc/apache2/sites-enabled
# Expose port 80 for Apache
EXPOSE 80

# Run Apache in the foreground
CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"]
#FIN DOCKER FILE

############################################################
############################################################
#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/php8-usuario3:1.2 .
#docker push jchamu/php8-usuario3:1.2
#################################################
###Probar la Imagen
##NOTA CREAR los archivos index.php e index.html
# docker run -d -p 80:80  jchamu/php8-usuario3:1.2
# wget http://127.0.0.1/index.php
################################################

Tag summary

Content type

Image

Digest

sha256:6387743f8…

Size

394.4 MB

Last updated

almost 3 years ago

docker pull jchamu/php8-usuario3:1.2