File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed
Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 11name : Create and publish a Docker image
22
33on :
4+ release :
5+ types : [published]
46 push :
57 branches :
68 - ' release*'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG DEBIAN_VERSION=slim-bookworm
66
77FROM docker.io/python:${PYTHON_VERSION}-${DEBIAN_VERSION}
88
9- RUN apt update -y && apt install -y wget tree pandoc texlive-xetex && apt clean -y
9+ RUN apt update -y && apt install -y wget tree pandoc git && apt clean -y
1010
1111# Install uv
1212COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
@@ -20,16 +20,18 @@ ENV NB_UID=${NB_UID} \
2020RUN useradd --no-log-init --create-home --shell /bin/bash --uid ${NB_UID} ${NB_USER}
2121USER ${NB_USER}
2222
23+ # Install Python dependencies
24+ ADD --chown=${NB_UID}:${NB_UID} pyproject.toml uv.lock /home/p4e/
25+ WORKDIR /home/p4e
26+ RUN uv sync --locked
27+
2328# Install notebooks
2429ADD --chown=${NB_UID}:${NB_UID} . /home/${NB_USER}
2530WORKDIR /home/${NB_USER}
2631
27- # Install Python dependencies
28- RUN uv sync --locked
29-
3032# Cleanup
31- RUN rm -rf uv.lock pyproject.toml libs/
33+ RUN rm -rf uv.lock pyproject.toml
3234
33- ENV PATH="/home/${NB_USER} /.venv/bin:$PATH" \
35+ ENV PATH="/home/p4e /.venv/bin:$PATH" \
3436 JUPYTER_ENABLE_LAB=yes \
3537 SHELL=/bin/bash
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ dependencies = [
1515 " requests>=2.32.3" ,
1616 " nb-unittest>=1.0.2" ,
1717 " nb-canvas-quiz>=0.5.1" ,
18+ " nbgitpuller>=1.2.2" ,
1819]
You can’t perform that action at this time.
0 commit comments