瀏覽代碼

replace yum with dnf

Maurits van der Schee 4 年之前
父節點
當前提交
aba7635132
共有 1 個檔案被更改,包括 5 行新增5 行删除
  1. 5
    5
      docker/centos8/Dockerfile

+ 5
- 5
docker/centos8/Dockerfile 查看文件

1
 FROM centos:8
1
 FROM centos:8
2
 
2
 
3
 # add this to avoid locale warnings
3
 # 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
5
 RUN localedef -i en_US -f UTF-8 en_US.UTF-8
5
 RUN localedef -i en_US -f UTF-8 en_US.UTF-8
6
 
6
 
7
 # add utils for repos
7
 # add utils for repos
12
 # enable mariadb repo
12
 # enable mariadb repo
13
 RUN wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup && bash mariadb_repo_setup
13
 RUN wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup && bash mariadb_repo_setup
14
 # enable the postgresql repo
14
 # 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
16
 # enable epel repo
16
 # enable epel repo
17
 RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
17
 RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
18
 # enable powertools repos
18
 # enable powertools repos
24
 RUN dnf -y module disable mariadb
24
 RUN dnf -y module disable mariadb
25
 RUN dnf -y module disable postgresql
25
 RUN dnf -y module disable postgresql
26
 
26
 
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 \
30
 postgresql12 postgresql12-server php-pgsql postgis30_12 \
30
 postgresql12 postgresql12-server php-pgsql postgis30_12 \
31
 sqlite php-sqlite3 \
31
 sqlite php-sqlite3 \
32
 git wget
32
 git wget

Loading…
取消
儲存