diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7c7b8c2..01b3f6c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,6 @@ jobs: env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - name: Checkout uses: actions/checkout@v4 @@ -67,7 +66,7 @@ jobs: with: platforms: linux/arm64,linux/amd64 file: docker/Dockerfile - push: true + push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} tags: | ghcr.io/jeertmans/manim-slides:latest ghcr.io/jeertmans/manim-slides:${{ steps.create_release.outputs.tag_name }} diff --git a/docker/Dockerfile b/docker/Dockerfile index 86733ee..5a29e2f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,8 @@ -# Mostly a copy from https://github.com/ManimCommunity/manim/blob/68bd79093e1ebc1ed9f8051942ffe6e72a9e66a7/docker/Dockerfile +# Mostly a copy from https://github.com/ManimCommunity/manim/blob/v0.18.1/docker/Dockerfile FROM python:3.11-slim RUN apt-get update -qq \ && apt-get install --no-install-recommends -y \ - ffmpeg \ build-essential \ gcc \ cmake \ @@ -24,15 +23,17 @@ RUN wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tl tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \ /tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt \ && tlmgr install \ - amsmath babel-english cbfonts-fd cm-super ctex doublestroke dvisvgm everysel \ + amsmath babel-english cbfonts-fd cm-super count1to ctex doublestroke dvisvgm everysel \ fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin \ - mathastext microtype ms physics preview ragged2e relsize rsfs \ + mathastext microtype multitoc physics prelim2e preview ragged2e relsize rsfs \ setspace standalone tipa wasy wasysym xcolor xetex xkeyval # clone and build manim-slides COPY . /opt/manim-slides WORKDIR /opt/manim-slides -RUN pip install --no-cache manim[jupyterlab] .[sphinx-directive] +ENV UV_PYTHON=/usr/local/bin/python +RUN pip install --no-cache-dir uv +RUN uv pip install --no-cache-dir manim[jupyterlab] .[sphinx-directive] ARG NB_USER=manimslidesuser ARG NB_UID=1000