mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-19 21:33:29 +08:00
fix(ci): docker image (#481)
* fix(ci): docker image * fix(ci): test build docker * fix(ci): typo :-( * fix(ci): don't use `--system`
This commit is contained in:
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -36,7 +36,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -67,7 +66,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
platforms: linux/arm64,linux/amd64
|
platforms: linux/arm64,linux/amd64
|
||||||
file: docker/Dockerfile
|
file: docker/Dockerfile
|
||||||
push: true
|
push: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/jeertmans/manim-slides:latest
|
ghcr.io/jeertmans/manim-slides:latest
|
||||||
ghcr.io/jeertmans/manim-slides:${{ steps.create_release.outputs.tag_name }}
|
ghcr.io/jeertmans/manim-slides:${{ steps.create_release.outputs.tag_name }}
|
||||||
|
@ -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
|
FROM python:3.11-slim
|
||||||
|
|
||||||
RUN apt-get update -qq \
|
RUN apt-get update -qq \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& apt-get install --no-install-recommends -y \
|
||||||
ffmpeg \
|
|
||||||
build-essential \
|
build-essential \
|
||||||
gcc \
|
gcc \
|
||||||
cmake \
|
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 && \
|
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 \
|
/tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt \
|
||||||
&& tlmgr install \
|
&& 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 \
|
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
|
setspace standalone tipa wasy wasysym xcolor xetex xkeyval
|
||||||
|
|
||||||
# clone and build manim-slides
|
# clone and build manim-slides
|
||||||
COPY . /opt/manim-slides
|
COPY . /opt/manim-slides
|
||||||
WORKDIR /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_USER=manimslidesuser
|
||||||
ARG NB_UID=1000
|
ARG NB_UID=1000
|
||||||
|
Reference in New Issue
Block a user