-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 955 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Base image that includes Texlive and LaTeX setup
FROM texlive/texlive:latest
# Install required packages (draw.io downloads depending on PC arch)
RUN apt update && \
apt install -y plantuml xvfb inkscape wget libgbm1 && \
ARCH="$(dpkg --print-architecture)" && \
DRAWIO_URL="" && \
case "$ARCH" in \
amd64) DRAWIO_URL="https://github.com/jgraph/drawio-desktop/releases/download/v22.1.2/drawio-amd64-22.1.2.deb" ;; \
arm64) DRAWIO_URL="https://github.com/jgraph/drawio-desktop/releases/download/v22.1.2/drawio-arm64-22.1.2.deb" ;; \
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
esac && \
mkdir -p /opt/drawio-desktop && \
wget -q -O /opt/drawio-desktop/drawio.deb "$DRAWIO_URL" && \
apt install -y /opt/drawio-desktop/drawio.deb && \
rm -rf /opt/drawio-desktop && \
rm -rf /var/lib/apt/lists/*
# Define PlantUML environment variable
ENV PLANTUML_JAR=/usr/share/plantuml/plantuml.jar