fix: offline deploy

This commit is contained in:
tao.chen
2026-08-17 15:30:21 +08:00
parent cbfbee7fe0
commit 0974881fbb
4 changed files with 16 additions and 9 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ FROM python-base:3.12
ENV UV_HTTP_TIMEOUT=300
ENV UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/
ENV UV_OFFLINE=1
ENV UV_NO_SYNC=1
COPY pyproject.toml uv.lock ./
COPY common/pyproject.toml common/pyproject.toml
@@ -35,4 +37,4 @@ RUN uv venv --python 3.8 /opt/venv/python3.8 && \
--display-name="Python 3.8"
EXPOSE 8000
CMD ["uv", "run", "--frozen", "--package", "schedule", "gunicorn", "--config", "schedule/gunicorn.conf.py", "schedule.main:app"]
CMD ["uv", "run", "--frozen", "--no-dev", "--package", "schedule", "gunicorn", "--config", "schedule/gunicorn.conf.py", "schedule.main:app"]