This commit is contained in:
Aditya Siregar
2025-08-10 20:41:34 +07:00
parent dc23a318cd
commit 5a42523f0f
10 changed files with 1019 additions and 3 deletions
+8 -1
View File
@@ -63,11 +63,18 @@ ENTRYPOINT ["migrate"]
# Production Stage
FROM debian:bullseye-slim AS production
# Install minimal runtime dependencies
# Install minimal runtime dependencies + Chrome, Chromium, and wkhtmltopdf for PDF generation
RUN apt-get update && apt-get install -y \
ca-certificates \
tzdata \
curl \
fontconfig \
wget \
gnupg \
&& wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update \
&& apt-get install -y google-chrome-stable chromium wkhtmltopdf \
&& rm -rf /var/lib/apt/lists/*
# Create non-root user for security