This repository contains a Dockerfile
to build a debian-based Docker image with TeXLive installed. It uses Debian Testing (debian:testing-slim
) with the texlive-full
package.
The image is published to GitHub Packages gchr.io.
To pull the image:
docker pull ghcr.io/moderncv/debian-texlive-docker:main
To use the image in a GitHub action (example):
name: Build PDF
on:
push:
branches:
- main
pull_request:
registry_package:
jobs:
build-pdf:
name: Build PDF
runs-on: ubuntu-latest
container:
image: ghcr.io/moderncv/debian-texlive-docker:main
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build PDF
run: latexmk ./main.tex
- name: Upload PDF
uses: actions/upload-artifact@v2
with:
name: main.pdf
path: ./main.pdf
- name: Upload log
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: main.log
path: ./main.log