Skip to content

Commit 3e62b5b

Browse files
committed
chore: reduce docker image size
1 parent 48d996f commit 3e62b5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ RUN go mod tidy && go build -ldflags "-s -w" -o main
88

99

1010
FROM scratch
11-
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
11+
COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
1212
COPY --from=builder /build/conf conf
1313
COPY --from=builder /build/main /
14-
ENV TZ=Asia/Shanghai
1514

1615
ENTRYPOINT ["/main"]

0 commit comments

Comments
 (0)