forked from flipped-aurora/gin-vue-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
后端dockerfile正确设置时区 && 忽略后端server/uploads文件夹 (flipped-aurora#1803)
* dockerfile后端设置时区 * gitignore忽略后端uploads文件夹
- Loading branch information
1 parent
e386b28
commit a4f139f
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,10 @@ RUN go env -w GO111MODULE=on \ | |
FROM alpine:latest | ||
|
||
LABEL MAINTAINER="SliverHorn@[email protected]" | ||
|
||
# 设置时区 | ||
ENV TZ=Asia/Shanghai | ||
RUN apk update && apk add --no-cache tzdata openntpd \ | ||
&& ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
WORKDIR /go/src/github.com/flipped-aurora/gin-vue-admin/server | ||
|
||
COPY --from=0 /go/src/github.com/flipped-aurora/gin-vue-admin/server/server ./ | ||
|