From 7ad10c3e3488aae1861628edab94d923468140ed Mon Sep 17 00:00:00 2001 From: yoan <536464346@qq.com> Date: Fri, 30 Aug 2024 22:55:06 +0800 Subject: [PATCH] To optimize Docker image size. --- .github/workflows/push_image.yml | 4 +++- Dockerfile_build | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index e6b36f6a..100cf8d6 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -46,4 +46,6 @@ jobs: file: ./Dockerfile_build platforms: linux/amd64,linux/arm64 push: true - tags: registry.cn-shanghai.aliyuncs.com/usual2970/certimate:${{ env.tag }} + tags: | + registry.cn-shanghai.aliyuncs.com/usual2970/certimate:${{ env.tag }} + registry.cn-shanghai.aliyuncs.com/usual2970/certimate:latest diff --git a/Dockerfile_build b/Dockerfile_build index cc5e8e87..fe6a86f6 100644 --- a/Dockerfile_build +++ b/Dockerfile_build @@ -1,4 +1,4 @@ -FROM alpine:3.20 +FROM alpine:latest WORKDIR /app