From 27819965eabe26d6521d6607873b04480c430e26 Mon Sep 17 00:00:00 2001 From: Julius Freudenberger Date: Tue, 25 Feb 2025 21:48:29 +0200 Subject: [PATCH] Update docker instructions --- docker/README.md | 8 ++++++-- docker/docker-compose.yaml | 8 -------- docker/run.bat | 3 --- docker/run.sh | 4 ---- 4 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 docker/docker-compose.yaml delete mode 100644 docker/run.bat delete mode 100755 docker/run.sh diff --git a/docker/README.md b/docker/README.md index ada428d..25eb8ee 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,6 +1,10 @@ # Docker setup for LaTeX -To use the docker setup create the container using Docker Compose. +LaTeX can also be used in a Container. +This example uses the `texlive` image. The source files have to reside in a subfolder called `data`. -The batch or shell script provide an example on how to compile the document. +To compile the document use the following command: +```bash +docker run --rm -t -v ./data:/latex -w /latex texlive/texlive pdflatex file.tex +``` diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml deleted file mode 100644 index df24d36..0000000 --- a/docker/docker-compose.yaml +++ /dev/null @@ -1,8 +0,0 @@ -version: "3" -services: - texlive: - image: texlive/texlive - volumes: - - ./data/:/latex - working_dir: /latex - tty: true diff --git a/docker/run.bat b/docker/run.bat deleted file mode 100644 index ce9b492..0000000 --- a/docker/run.bat +++ /dev/null @@ -1,3 +0,0 @@ -docker-compose up -d -docker-compose exec texlive pdflatex file.tex -docker-compose down diff --git a/docker/run.sh b/docker/run.sh deleted file mode 100755 index 4209b0c..0000000 --- a/docker/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -docker-compose up -d -docker-compose exec texlive pdflatex file.tex -docker-compose down