File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed
Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 11# Stage 1: Builder with all necessary packages
2- FROM alpine :latest AS builder
2+ FROM ubuntu :latest AS builder
33
4- # Install texlive-all and build dependencies in a single layer to optimize caching
5- RUN apk add --no-cache \
6- texlive-all \
7- perl \
8- fontconfig \
9- make \
10- && texhash
4+ # Install build dependencies
5+ RUN apt-get update && \
6+ apt-get install -y --no-install-recommends \
7+ build-essential \
8+ texlive-full \
9+ perl \
10+ fontconfig \
11+ && rm -rf /var/lib/apt/lists/*
1112
1213# Stage 2: Final image with only runtime dependencies
13- FROM alpine :latest
14+ FROM ubuntu :latest
1415
1516# Install minimal runtime dependencies
16- RUN apk add --no-cache \
17- texlive-xetex \
18- texmf-dist \
19- fontconfig
17+ RUN apt-get update && \
18+ apt-get install -y --no-install-recommends \
19+ texlive-xetex \
20+ texlive-fonts-recommended \
21+ texlive-pictures \
22+ fontconfig \
23+ && rm -rf /var/lib/apt/lists/*
2024
2125# Copy texmf files from builder
2226COPY --from=builder /usr/share/texmf-dist /usr/share/texmf-dist
You can’t perform that action at this time.
0 commit comments