[fixed] timezone

This commit is contained in:
Zhanpeng Yang 2024-09-26 18:24:47 +08:00
parent d3b5ebf0e7
commit d328231d5c
3 changed files with 10 additions and 1 deletions

7
ChangeLog.md Normal file
View File

@ -0,0 +1,7 @@
# 更新日志
## 0.0.1.20240926_alpha
### 🐞Fixed
- 修改容器内时区为Asia/Shanghai即在DockerFile中添加环境变量TZ=Asia/Shanghai。否则将导致本地时间与 容器内时间不一致
### 🚀Refactored
- 直接运行`./run.ps1`即默认启动开发环境

View File

@ -1,5 +1,7 @@
FROM python:3.12.6-bookworm
ENV TZ=Asia/Shanghai
WORKDIR /app
RUN pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple flask msgpack onnxruntime gunicorn

View File

@ -6,7 +6,7 @@ If($cmd -eq "build_docker"){
}
If($cmd -eq "dev"){
If($cmd -eq "dev" -or [String]::IsNullOrEmpty($cmd)){
docker run --rm -p "22111:22111" -v "C:\SEMS-development\SEMS-model-inference:/app" --name sems-model-inference sems-model-inference:latest python main.py
}