[fixed] timezone
This commit is contained in:
parent
d3b5ebf0e7
commit
6d4abc988e
7
ChangeLog.md
Normal file
7
ChangeLog.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# 更新日志
|
||||||
|
|
||||||
|
## 0.0.1.20240926_alpha
|
||||||
|
### 🐞Fixed
|
||||||
|
- 修改容器内时区为Asia/Shanghai,即在DockerFile中添加环境变量TZ=Asia/Shanghai。否则将导致本地时间与 容器内时间不一致
|
||||||
|
### 🚀Refactored
|
||||||
|
- 直接运行`./run.ps1`即默认启动开发环境
|
@ -1,5 +1,7 @@
|
|||||||
FROM python:3.12.6-bookworm
|
FROM python:3.12.6-bookworm
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple flask msgpack onnxruntime gunicorn
|
RUN pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple flask msgpack onnxruntime gunicorn
|
||||||
|
|
||||||
|
2
run.ps1
2
run.ps1
@ -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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user