Skip to content

Commit 1c57300

Browse files
CI: move to ubuntu
1 parent 64b363f commit 1c57300

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.docker/Dockerfile

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
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
2226
COPY --from=builder /usr/share/texmf-dist /usr/share/texmf-dist

0 commit comments

Comments
 (0)