optimize dockerfile (#272)

This commit is contained in:
Kevin Wan
2020-12-10 16:21:06 +08:00
committed by GitHub
parent 5071736ab4
commit fd73ced6dc
2 changed files with 4 additions and 4 deletions

View File

@@ -28,9 +28,7 @@ RUN go build -ldflags="-s -w" -o /app/{{.ExeFile}} {{.GoRelPath}}/{{.GoFile}}
FROM alpine
RUN apk update --no-cache
RUN apk add --no-cache ca-certificates
RUN apk add --no-cache tzdata
RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata
ENV TZ Asia/Shanghai
WORKDIR /app