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
This commit is contained in:
2025-05-11 10:59:26 +02:00
parent 36f2999cc9
commit 60dcc30c0d

View File

@@ -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