Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion build/Dockerfile.distroless
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,15 @@ RUN \
# https://github.com/arachnys/athenapdf/commit/ba25a8d80a25d08d58865519c4cd8756dc9a336d.
COPY build/fonts.conf /etc/fonts/conf.d/100-gotenberg.conf

# ----------------------------------------------
# Python copy stage
# ----------------------------------------------
FROM public.ecr.aws/j9h1x6x3/distroless-python:latest AS python-source

# ----------------------------------------------
# Final stage
# ----------------------------------------------
FROM public.ecr.aws/j9h1x6x3/distroless-python:latest AS base
FROM gcr.io/distroless/cc-debian12:latest AS base

# Set platform-specific CHIPSET_ARCH
FROM base AS base-amd64
Expand All @@ -190,6 +195,11 @@ ARG CHIPSET_ARCH=aarch64-linux-gnu
ARG TARGETARCH
FROM base-${TARGETARCH}

# Required for unoconverter
COPY --from=python-source /usr/local/bin/python /usr/bin/python
COPY --from=python-source /usr/local/bin/python /usr/bin/python3
COPY --from=python-source /usr/local/bin/python /usr/bin/python3.11

ENV PYTHONPATH="/usr/local/lib/python3.11/dist-packages:"

# LibreOffice dependencies
Expand Down