Skip to content

Commit

Permalink
fix:尝试修正s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
okxlin committed Aug 19, 2023
1 parent 821451e commit 85bdd8f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions s390x/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ RUN apt-get update && apt-get install -y \
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 安装 Docker
RUN curl -fsSL https://get.docker.com | bash -s docker
# 设置 Docker 仓库
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
echo "deb [arch=s390x signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian bullseye stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

# 清理
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# 安装 Docker CLI
RUN apt-get update && apt-get install -y docker-ce-cli && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# 安装 Docker Compose
RUN curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
Expand Down

0 comments on commit 85bdd8f

Please sign in to comment.