Sign inSign up

jchamu/php74

By jchamu

•Updated about 2 years ago

php 7.4, redis, y apache,nodejs,npm

Image
Developer tools
Web servers
0

443

jchamu/php74 repository overview

##################################################
#Elaborado por José Othoniel Chamú Arias y Alberto González Guízar
##################################################
#PARA LA VERSIÓN 1.0 se tiene instalado php 7.4, 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 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 7.4
RUN apt-get update

RUN apt install -y php7.4
RUN apt install -y php7.4-common
RUN apt install -y php7.4-json
RUN apt install -y php7.4-phar
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-imagick
RUN apt install -y php7.4-redis
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-pdo
RUN apt install -y php7.4-pdo-mysql
RUN apt install -y php7.4-pdo-pgsql
RUN apt install -y php7.4-pdo-dblib
RUN apt install -y php7.4-pdo-firebird
RUN apt install -y php7.4-pgsql
RUN apt install -y php7.4-mysql
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 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
#touch index.html /var/www/html
#touch index.php /var/www/html
#docker build -t jchamu/php74:1.0  .
#docker push jchamu/php74:1.0
#################################################
###Probar la Imagen
#
##NOTA CREAR los archivos index.php e index.html
# docker run -d -p 80:80  jchamu/php74:1.0
# wget http://127.0.0.1/index.php
################################################

Tag summary

Content type

Image

Digest

sha256:d1459f17f…

Size

480.9 MB

Last updated

about 2 years ago

docker pull jchamu/php74:1.0