mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 01:08:47 +02:00
refactor(Dockerfile): simplify development Dockerfile
This commit is contained in:
@@ -1,23 +1,17 @@
|
|||||||
# Stage 1: deps
|
# Stage 1: deps
|
||||||
FROM golang:1.25.0-alpine AS deps
|
FROM alpine:3.22 AS deps
|
||||||
HEALTHCHECK NONE
|
HEALTHCHECK NONE
|
||||||
|
|
||||||
# package version does not matter
|
# package version does not matter
|
||||||
# trunk-ignore(hadolint/DL3018)
|
# trunk-ignore(hadolint/DL3018)
|
||||||
RUN apk add --no-cache tzdata make libcap-setcap
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
# Stage 3: Final image
|
# Stage 2: Final image
|
||||||
FROM alpine:3.22
|
FROM deps
|
||||||
|
|
||||||
LABEL maintainer="yusing@6uo.me"
|
LABEL maintainer="yusing@6uo.me"
|
||||||
LABEL proxy.exclude=1
|
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
|
ARG TARGET
|
||||||
ENV TARGET=${TARGET}
|
ENV TARGET=${TARGET}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user