|
@@ -3,19 +3,24 @@ FROM centos:8
|
3
|
3
|
# add this to avoid locale warnings
|
4
|
4
|
RUN yum -y install glibc-locale-source glibc-langpack-en
|
5
|
5
|
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
|
|
6
|
+
|
6
|
7
|
# add utils for repos
|
7
|
8
|
RUN dnf -y install wget dnf-utils
|
|
9
|
+
|
8
|
10
|
# enable remi repo for php
|
9
|
11
|
RUN dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
|
|
12
|
+# enable mariadb repo
|
10
|
13
|
RUN wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup && bash mariadb_repo_setup
|
11
|
14
|
# enable the postgresql repo
|
12
|
15
|
RUN yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
|
13
|
|
-# enable epel and powertools repos
|
|
16
|
+# enable epel repo
|
14
|
17
|
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
|
18
|
+# enable powertools repos
|
15
|
19
|
RUN dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled PowerTools
|
|
20
|
+
|
16
|
21
|
# set php to remi 7.4
|
17
|
22
|
RUN dnf -y module reset php && dnf -y module enable php:remi-7.4
|
18
|
|
-# disable mariadb and postgresql appstream repo
|
|
23
|
+# disable mariadb and postgresql default (appstream) repo
|
19
|
24
|
RUN dnf -y module disable mariadb
|
20
|
25
|
RUN dnf -y module disable postgresql
|
21
|
26
|
|