fix: offline deploy
This commit is contained in:
+3
-1
@@ -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 common/pyproject.toml common/pyproject.toml
|
||||
COPY backend/pyproject.toml backend/pyproject.toml
|
||||
@@ -17,4 +19,4 @@ RUN uv sync --frozen --no-dev --package backend
|
||||
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["gunicorn", "--config", "backend/gunicorn.conf.py", "backend.main:app"]
|
||||
CMD ["uv", "run", "--frozen", "--no-dev", "--package", "backend", "gunicorn", "--config", "backend/gunicorn.conf.py", "backend.main:app"]
|
||||
|
||||
Reference in New Issue
Block a user