From 7b3c99dadaa749fcd7e29c36b35658d0a0cf2ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 13 Aug 2022 20:56:51 +0800 Subject: [PATCH] =?UTF-8?q?build(oci):=E7=94=9F=E4=BA=A7=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=B8=AD=E5=8A=A0=E5=85=A5=E6=97=B6=E5=8C=BA=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f42cde3..e819cec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .