Skip to content

Commit

Permalink
Update centos-7.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinji-IkariG authored Aug 30, 2024
1 parent 25120b6 commit 2e62eee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/buildx/centos-7.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM centos:7
SHELL ["/bin/bash", "-c"]
ARG GOLANG_VERSION=1.21.6

RUN arch=$(uname -m); \
full_version=$(cat /etc/centos-release | sed 's/.*release \([^ ]*\).*/\1/') \
if [ "$arch" = "x86_64" ]; then \
baseurl="https://vault.centos.org/7.9.2009"; \
baseurl="https://vault.centos.org/$full_version"; \
else \
baseurl="https://vault.centos.org/altarch"; \
fi; \
Expand All @@ -14,8 +14,8 @@ RUN arch=$(uname -m); \
else \
sed -i "s|^#baseurl=http://mirror.centos.org/altarch|baseurl=${baseurl}|g" /etc/yum.repos.d/CentOS-Base.repo; \
fi; \
yum install -y epel-release && yum update -y \
&& yum install -y make \
yum install -y epel-release && yum update -y && \
yum install -y make \
git \
m4 \
curl \
Expand Down

0 comments on commit 2e62eee

Please sign in to comment.