Sign inSign up

jchamu/php85

By jchamu

•Updated 4 months ago

Contiene: php 8.5, redis, OCI,composer,nodejs, apache, vi

Image
Languages & frameworks
Developer tools
Web servers
0

308

jchamu/php85 repository overview

⁠Elaborado por:
  • José Othoniel Chamú Arias
  • Alberto González Guízar
  • Luis Daniel Barajas González
  • Hugo Germán Cuellar Martinez
⁠📋 Características Principales:

En la versión 1.0 se tiene instalado php 8.5, redis, OCI,composer,nodejs, y apache Se anexo vi en el contenedor para editar archivos de configuración directamente

⁠Parte del código fuente:
 
FROM debian:12.4

USER root RUN apt-get update -y --allow-releaseinfo-change RUN apt-get upgrade -y

⁠Install Apache and PHP

RUN apt-get install -y apache2

RUN apt-get install -y software-properties-common

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 cron

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 libapache2-mod-security2

RUN a2enmod ssl RUN a2enmod rewrite RUN a2enmod security2

#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 install -y redis

#Instalacion de nodejs

RUN curl -fsSL https://deb.nodesource.com/setup_24.x⁠ | bash - RUN apt-get install -y nodejs

RUN npm --version #Instalacion de modulos de php 8.5 RUN apt-get update RUN apt-get install -y php-pear

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

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

RUN apt-get -y update

WORKDIR /var/www/html

...

EXPOSE 80 EXPOSE 6379

CMD ["/bin/bash","-c", "rm -f /run/crond.pid && rm -f /run/apache2/apache2.pid && /usr/sbin/cron start && nohup /usr/bin/redis-server /etc/redis/redis.conf --daemonize yes && /usr/sbin/apachectl -D FOREGROUND "]

Tag summary

Content type

Image

Digest

sha256:522e0f0a1…

Size

735.1 MB

Last updated

4 months ago

docker pull jchamu/php85:1.0