Skip to content

Commit d567992

Browse files
authored
fix(ci): docker image (#481)
* fix(ci): docker image * fix(ci): test build docker * fix(ci): typo :-( * fix(ci): don't use `--system`
1 parent fb562d8 commit d567992

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ jobs:
3636
env:
3737
REGISTRY: ghcr.io
3838
IMAGE_NAME: ${{ github.repository }}
39-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
4039
steps:
4140
- name: Checkout
4241
uses: actions/checkout@v4
@@ -67,7 +66,7 @@ jobs:
6766
with:
6867
platforms: linux/arm64,linux/amd64
6968
file: docker/Dockerfile
70-
push: true
69+
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
7170
tags: |
7271
ghcr.io/jeertmans/manim-slides:latest
7372
ghcr.io/jeertmans/manim-slides:${{ steps.create_release.outputs.tag_name }}

docker/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Mostly a copy from https://github.com/ManimCommunity/manim/blob/68bd79093e1ebc1ed9f8051942ffe6e72a9e66a7/docker/Dockerfile
1+
# Mostly a copy from https://github.com/ManimCommunity/manim/blob/v0.18.1/docker/Dockerfile
22
FROM python:3.11-slim
33

44
RUN apt-get update -qq \
55
&& apt-get install --no-install-recommends -y \
6-
ffmpeg \
76
build-essential \
87
gcc \
98
cmake \
@@ -24,15 +23,17 @@ RUN wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tl
2423
tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \
2524
/tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt \
2625
&& tlmgr install \
27-
amsmath babel-english cbfonts-fd cm-super ctex doublestroke dvisvgm everysel \
26+
amsmath babel-english cbfonts-fd cm-super count1to ctex doublestroke dvisvgm everysel \
2827
fontspec frcursive fundus-calligra gnu-freefont jknapltx latex-bin \
29-
mathastext microtype ms physics preview ragged2e relsize rsfs \
28+
mathastext microtype multitoc physics prelim2e preview ragged2e relsize rsfs \
3029
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
3130

3231
# clone and build manim-slides
3332
COPY . /opt/manim-slides
3433
WORKDIR /opt/manim-slides
35-
RUN pip install --no-cache manim[jupyterlab] .[sphinx-directive]
34+
ENV UV_PYTHON=/usr/local/bin/python
35+
RUN pip install --no-cache-dir uv
36+
RUN uv pip install --no-cache-dir manim[jupyterlab] .[sphinx-directive]
3637

3738
ARG NB_USER=manimslidesuser
3839
ARG NB_UID=1000

0 commit comments

Comments
 (0)