From ddd27156fcafb12473579e6a3d587ca7bfb2fd90 Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 21 Sep 2025 13:00:43 +0800 Subject: [PATCH] refactor(Dockerfile): simplify development Dockerfile --- dev.Dockerfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/dev.Dockerfile b/dev.Dockerfile index 369b1cb1..fc842fd8 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,23 +1,17 @@ # Stage 1: deps -FROM golang:1.25.0-alpine AS deps +FROM alpine:3.22 AS deps HEALTHCHECK NONE # package version does not matter # trunk-ignore(hadolint/DL3018) -RUN apk add --no-cache tzdata make libcap-setcap +RUN apk add --no-cache tzdata -# Stage 3: Final image -FROM alpine:3.22 +# Stage 2: Final image +FROM deps LABEL maintainer="yusing@6uo.me" LABEL proxy.exclude=1 -# copy timezone data -COPY --from=deps /usr/share/zoneinfo /usr/share/zoneinfo - -# copy certs -COPY --from=deps /etc/ssl/certs /etc/ssl/certs - ARG TARGET ENV TARGET=${TARGET}