Skip to content

Commit

Permalink
fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Winspain committed Dec 18, 2023
1 parent 1c5181b commit c505315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lotteryGo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 使用官方 Golang 镜像作为基础镜像
FROM golang:latest

RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone

# 将当前目录的文件复制到容器的 /app 目录下
COPY . /app

Expand Down

0 comments on commit c505315

Please sign in to comment.