Skip to content

Commit aba7635

Browse files
committed
replace yum with dnf
1 parent 5d5ec8e commit aba7635

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/centos8/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM centos:8
22

33
# add this to avoid locale warnings
4-
RUN yum -y install glibc-locale-source glibc-langpack-en
4+
RUN dnf -y install glibc-locale-source glibc-langpack-en
55
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
66

77
# add utils for repos
@@ -12,7 +12,7 @@ RUN dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
1212
# enable mariadb repo
1313
RUN wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup && bash mariadb_repo_setup
1414
# enable the postgresql repo
15-
RUN yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
15+
RUN dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
1616
# enable epel repo
1717
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
1818
# enable powertools repos
@@ -24,9 +24,9 @@ RUN dnf -y module reset php && dnf -y module enable php:remi-7.4
2424
RUN dnf -y module disable mariadb
2525
RUN dnf -y module disable postgresql
2626

27-
RUN yum -y install \
28-
php-cli php-xml \
29-
MariaDB-server MariaDB-client php-mysqlnd php-json \
27+
RUN dnf -y install \
28+
php-cli php-xml php-json \
29+
MariaDB-server MariaDB-client php-mysqlnd \
3030
postgresql12 postgresql12-server php-pgsql postgis30_12 \
3131
sqlite php-sqlite3 \
3232
git wget

0 commit comments

Comments
 (0)