forked from free-lancers/electricity_bill_calc_service
build(oci):生产镜像中加入时区支持。
This commit is contained in:
@@ -10,6 +10,8 @@ ADD . /app
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -tags=jsoniter -v -o server .
|
||||
|
||||
FROM alpine:latest AS production
|
||||
RUN apk add --no-cache tzdata
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/server .
|
||||
|
Reference in New Issue
Block a user