build(oci):生产镜像中加入时区支持。
This commit is contained in:
parent
bc60fcf835
commit
7b3c99dada
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue
Block a user