From 60dcc30c0d9bad5dc9c0b1e4f79a4cb53330a965 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 11 May 2025 10:59:26 +0200 Subject: [PATCH] chore(dockerfile): switch base image to debian and update curl setup - Replace Alpine with Debian Slim for the runtime environment - Update curl installation process to use apt-get for compatibility --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a60d9ca..add0e24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,10 +14,12 @@ COPY import_map.json ./import_map.json RUN deno task compile # -------- Stage 2: Minimal runtime environment -------- -FROM alpine:latest +FROM debian:bookworm-slim -# Optional: Install curl for container-level health checks (not needed for production-only binaries) -RUN apk add --no-cache curl +# Optional: Install curl for container-level health checks +RUN apt-get update \ + && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* # Copy only the compiled application binary from the builder stage COPY --from=builder /app/app /app/app