Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohann0617 committed Nov 14, 2024
1 parent d00ce24 commit cab5615
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ RUN mvn clean package -DskipTests \
&& cp target/ocihelper-0.0.1.jar /app/oci-helper.jar

# 支持AMD、ARM两种架构的镜像
FROM openjdk:8-jdk-alpine
FROM openjdk:8-jdk

# 安装依赖包
RUN apk update \
&& apk add --no-cache tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
RUN apt-get update \
&& apt-get install -y --no-install-recommends tzdata \
&& ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& mkdir -p /app/oci-helper/keys && touch /app/oci-helper/oci-helper.db
&& mkdir -p /app/oci-helper/keys && touch /app/oci-helper/oci-helper.db \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# 设置工作目录
WORKDIR /app/oci-helper
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ mkdir -p /app/oci-helper/keys

### 3. docker拉取镜像直接运行

需提前安装docker环境,镜像大小约170MB,支持arm64、amd64架构。
需提前安装docker环境,支持arm64、amd64架构。

```bash
docker run -d --name oci-helper --restart=always \
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Copy `application.yml` and `oci-helper.db` to the `/app/oci-helper` directory, a

### 3. Pull the image from docker and run it directly

The docker environment needs to be installed in advance. The image size is about 170MB and supports arm64 and amd64 architectures.
The docker environment needs to be installed in advance. The image supports arm64 and amd64 architectures.

```bash
docker run -d --name oci-helper --restart=always \
Expand Down

0 comments on commit cab5615

Please sign in to comment.