build(oci):生产镜像中加入时区支持。

This commit is contained in:
徐涛 2022-08-13 20:56:51 +08:00
parent bc60fcf835
commit 7b3c99dada

View File

@ -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 .