update: Dockerfile
This commit is contained in:
+9
-8
@@ -12,15 +12,7 @@ COPY common/pyproject.toml common/pyproject.toml
|
|||||||
COPY runtime/pyproject.toml runtime/pyproject.toml
|
COPY runtime/pyproject.toml runtime/pyproject.toml
|
||||||
RUN uv sync --frozen --no-dev --package runtime --no-install-workspace
|
RUN uv sync --frozen --no-dev --package runtime --no-install-workspace
|
||||||
|
|
||||||
COPY common ./common
|
|
||||||
COPY runtime ./runtime
|
|
||||||
COPY extras ./extras
|
COPY extras ./extras
|
||||||
RUN uv sync --frozen --no-dev --package runtime
|
|
||||||
|
|
||||||
RUN mkdir -p /root/.jupyter/custom /app/.venv/share/jupyter/custom && \
|
|
||||||
echo '#top-panel, #top-panel-wrapper, .jp-Notebook-header, .jp-FileEditorHeader {display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; position: absolute !important; pointer-events: none !important; }' > /root/.jupyter/custom/custom.css && \
|
|
||||||
cp /root/.jupyter/custom/custom.css /app/.venv/share/jupyter/custom/custom.css
|
|
||||||
|
|
||||||
RUN uv venv --seed --python 3.8 /opt/venv/python3.8 && \
|
RUN uv venv --seed --python 3.8 /opt/venv/python3.8 && \
|
||||||
uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \
|
uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \
|
||||||
/opt/venv/python3.8/bin/python -m ipykernel install \
|
/opt/venv/python3.8/bin/python -m ipykernel install \
|
||||||
@@ -42,5 +34,14 @@ RUN uv venv --seed --python 3.12 /opt/venv/python3.12 && \
|
|||||||
--name=python312 \
|
--name=python312 \
|
||||||
--display-name="Python 3.12"
|
--display-name="Python 3.12"
|
||||||
|
|
||||||
|
COPY common ./common
|
||||||
|
COPY runtime ./runtime
|
||||||
|
|
||||||
|
RUN uv sync --frozen --no-dev --package runtime
|
||||||
|
RUN mkdir -p /root/.jupyter/custom /app/.venv/share/jupyter/custom && \
|
||||||
|
echo '#top-panel, #top-panel-wrapper, .jp-Notebook-header, .jp-FileEditorHeader {display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; position: absolute !important; pointer-events: none !important; }' > /root/.jupyter/custom/custom.css && \
|
||||||
|
cp /root/.jupyter/custom/custom.css /app/.venv/share/jupyter/custom/custom.css
|
||||||
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
CMD ["uv", "run", "--frozen", "--package", "runtime", "gunicorn", "--config", "runtime/gunicorn.conf.py", "runtime.main:app"]
|
CMD ["uv", "run", "--frozen", "--package", "runtime", "gunicorn", "--config", "runtime/gunicorn.conf.py", "runtime.main:app"]
|
||||||
|
|||||||
Reference in New Issue
Block a user