From 396ee45e8cec9e70c54019f2d519d19a86e1aff8 Mon Sep 17 00:00:00 2001 From: glidea <740696441@qq.com> Date: Wed, 23 Apr 2025 19:47:41 +0800 Subject: [PATCH] fix docker image label --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5206651..c9d6b63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,13 @@ WORKDIR /app COPY . . ARG VERSION=dev -LABEL org.opencontainers.image.version=${VERSION} RUN GOOS=linux go build -ldflags="-s -w -X main.version=${VERSION}" -o /app/zenfeed ./main.go FROM alpine:latest +ARG VERSION=dev +LABEL org.opencontainers.image.version=${VERSION} + RUN apk add --no-cache ca-certificates tzdata && \ mkdir -p /app/data