fix docker image label

This commit is contained in:
glidea
2025-04-23 19:47:41 +08:00
parent 9026a08298
commit 396ee45e8c

View File

@@ -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