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 85bdd8f commit 3021a49
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions s390x/latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye-slim
FROM ubuntu:22.04

# 安装所需的软件包并清理
RUN apt-get update && apt-get install -y \
Expand All @@ -8,22 +8,25 @@ RUN apt-get update && apt-get install -y \
curl \
gnupg \
git \
sudo \
#openssh-server \
apt-transport-https \
software-properties-common \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# 设置 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
# 添加 Docker 仓库
RUN curl -fsSL https://download.docker.com/linux/ubuntu/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/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list

# 安装 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 && \
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && \
Expand Down

0 comments on commit 3021a49

Please sign in to comment.