Skip to content

Commit

Permalink
feat: texlive-full without all the beef!
Browse files Browse the repository at this point in the history
  • Loading branch information
engineervix committed Jul 2, 2024
1 parent ec758ee commit 7b0198e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
tags: engineervix/python-latex:${{ matrix.python-version }}-slim-${{ matrix.debian-version }}
labels: |
"org.opencontainers.image.title": "python-latex",
"org.opencontainers.image.description": "Python ${{ matrix.python-version }}-slim-${{ matrix.debian-version }} plus texlive-full and pandoc",
"org.opencontainers.image.description": "Python ${{ matrix.python-version }}-slim-${{ matrix.debian-version }} plus texlive-full (without the docs) and pandoc",
"org.opencontainers.image.url": "https://github.com/engineervix/docker-python-latex",
"org.opencontainers.image.source": "https://github.com/engineervix/docker-python-latex",
"org.opencontainers.image.version": "${{ matrix.python-version }}-slim-${{ matrix.debian-version }}",
Expand Down
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ ARG PYTHON_VERSION
ARG DEBIAN_VERSION

LABEL version="${PYTHON_VERSION}-slim-${DEBIAN_VERSION}"
LABEL description="Python ${PYTHON_VERSION}-slim-${DEBIAN_VERSION} plus texlive-full and pandoc"
LABEL description="Python ${PYTHON_VERSION}-slim-${DEBIAN_VERSION} plus texlive-full (without the docs) and pandoc"

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
texlive-full \
# https://gist.github.com/wkrea/b91e3d14f35d741cf6b05e57dfad8faf
`apt --assume-no install texlive-full | \
awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
tr ' ' '\n' | \
grep -vP 'doc$' | \
tr '\n' ' '` \
pandoc \
; \
rm -rf /var/lib/apt/lists/*

CMD ["python3"]
CMD ["python3"]

0 comments on commit 7b0198e

Please sign in to comment.