We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76e1af commit b7eb61dCopy full SHA for b7eb61d
Dockerfile
@@ -1,12 +1,12 @@
1
-FROM golang:1.20 AS builder
+FROM golang:1.20-alpine AS builder
2
RUN apk --no-cache add tzdata
3
WORKDIR /build
4
COPY . .
5
RUN go mod tidy && go build -ldflags "-s -w" -o main
6
7
8
FROM scratch
9
-COPY --from=builder /user/share/zoneinfo /user/share/zoneinfo
+COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
10
COPY --from=builder /build/conf conf
11
COPY --from=builder /build/main /
12
ENV TZ=Asia/Shanghai
0 commit comments