PHP Classes

File: docker/centos8/Dockerfile

Recommend this page to a friend!
  Classes of Punto Waskito   PHP CRUD API   docker/centos8/Dockerfile   Download  
File: docker/centos8/Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP CRUD API
Provide API to manipulate database table records
Author: By
Last change:
Date: 3 years ago
Size: 1,289 bytes
 

Contents

Class file image Download
FROM centos:8 # add this to avoid locale warnings RUN dnf -y install glibc-locale-source glibc-langpack-en RUN localedef -i en_US -f UTF-8 en_US.UTF-8 # add utils for repos RUN dnf -y install wget dnf-utils # enable remi repo for php RUN dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm # enable mariadb repo RUN wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup && bash mariadb_repo_setup # enable the postgresql repo RUN dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm # enable epel repo RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm # enable powertools repos RUN dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled powertools # set php to remi 8.0 RUN dnf -y module reset php && dnf -y module enable php:remi-8.0 # disable mariadb and postgresql default (appstream) repo RUN dnf -y module disable mariadb RUN dnf -y module disable postgresql RUN dnf -y install \ php-cli php-xml php-json php-mbstring \ MariaDB-server MariaDB-client php-mysqlnd \ postgresql12 postgresql12-server php-pgsql postgis30_12 \ sqlite php-sqlite3 \ git wget # install run script ADD run.sh /usr/sbin/docker-run CMD docker-run