Skip to content

Commit 5b66332

Browse files
committed
Fix z2jh install overlay error.
1 parent 2888e52 commit 5b66332

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

.github/workflows/build-container.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Create and publish a Docker image
22

33
on:
4+
release:
5+
types: [published]
46
push:
57
branches:
68
- 'release*'

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG DEBIAN_VERSION=slim-bookworm
66

77
FROM 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
1212
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
@@ -20,16 +20,18 @@ ENV NB_UID=${NB_UID} \
2020
RUN useradd --no-log-init --create-home --shell /bin/bash --uid ${NB_UID} ${NB_USER}
2121
USER ${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
2429
ADD --chown=${NB_UID}:${NB_UID} . /home/${NB_USER}
2530
WORKDIR /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

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
]

uv.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)