Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lyy0709 authored Apr 16, 2024
1 parent f25bca7 commit 20ac989
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
# 从 builder 镜像中复制应用到当前镜像中
COPY --from=builder /app/main /app/main

# 从 builder 镜像中复制应用到当前镜像中
COPY --from=builder /app/resource /app/resource

# 指定环境变量 TZ,你可以在运行 Docker 容器时通过 -e 参数来覆盖这个值
ENV TZ=Asia/Shanghai

# 指定容器启动时运行的命令
ENTRYPOINT ["/app/main"]
ENTRYPOINT ["/app/main"]

0 comments on commit 20ac989

Please sign in to comment.