Skip to content

Commit 9bfd926

Browse files
authored
feat: install apisix with apisix rpm repo (#244)
1 parent bea3d88 commit 9bfd926

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

centos/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ FROM centos:7
33
ARG APISIX_VERSION=2.10.1
44
LABEL apisix_version="${APISIX_VERSION}"
55

6-
RUN yum -y install yum-utils\
7-
&& yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo \
8-
&& yum install -y pcre openresty which tzdata openldap-devel \
9-
&& yum install -y https://github.com/apache/apisix/releases/download/$APISIX_VERSION/apisix-$APISIX_VERSION-0.el7.x86_64.rpm \
6+
RUN yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm \
7+
&& yum install -y apisix-$APISIX_VERSION \
108
&& yum clean all \
119
&& sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs
1210

0 commit comments

Comments
 (0)