Skip to content

Commit

Permalink
Add Dockerfile for using vehicle with minted
Browse files Browse the repository at this point in the history
  • Loading branch information
wenkokke committed Jan 12, 2024
1 parent fff6687 commit 93c5aef
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tools/latex-minted/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# To build: docker build -o . .
FROM texlive/texlive:latest AS build-stage

# Install vehicle-lang
RUN <<EOT bash
apt-get update
apt-get install -y python3-pip
python3 -m pip install vehicle-lang --break-system-packages
EOT

# Add source files from build-context
WORKDIR /workdir

# Add your source files!
#
# The `ADD` command supports glob patterns for matching,
# but does not preserve the directory structure.
# https://docs.docker.com/engine/reference/builder/#add
#
# If you are using Dockerfile version 1.6 or later, you
# can use the `COPY` command with `--parents` to preserve
# the directory structure, e.g.,
#
# COPY --parents **/* .

ADD sample.tex .

# Build with latexmk
RUN latexmk -shell-escape -pdf sample.tex

# Export paper.pdf to scratch
FROM scratch AS export-stage
COPY --from=build-stage /workdir/sample.pdf /

0 comments on commit 93c5aef

Please sign in to comment.