Skip to content

Commit b7eb61d

Browse files
committed
fix: dockerfile
1 parent f76e1af commit b7eb61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM golang:1.20 AS builder
1+
FROM golang:1.20-alpine AS builder
22
RUN apk --no-cache add tzdata
33
WORKDIR /build
44
COPY . .
55
RUN go mod tidy && go build -ldflags "-s -w" -o main
66

77

88
FROM scratch
9-
COPY --from=builder /user/share/zoneinfo /user/share/zoneinfo
9+
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
1010
COPY --from=builder /build/conf conf
1111
COPY --from=builder /build/main /
1212
ENV TZ=Asia/Shanghai

0 commit comments

Comments
 (0)