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 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"]
|
||||
|
||||
Reference in New Issue
Block a user