build: 设置 Docker 镜像时区为亚洲上海时间
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 添加了 `ENV TZ=Asia/Shanghai` 以确保容器使用正确的时区配置
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
FROM python:3.9-alpine
|
FROM python:3.9-alpine
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
RUN pip install flask
|
RUN pip install flask
|
||||||
COPY app.py /app.py
|
COPY app.py /app.py
|
||||||
CMD ["python", "/app.py"]
|
CMD ["python", "/app.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user