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:
@@ -14,10 +14,12 @@ COPY import_map.json ./import_map.json
|
|||||||
RUN deno task compile
|
RUN deno task compile
|
||||||
|
|
||||||
# -------- Stage 2: Minimal runtime environment --------
|
# -------- 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)
|
# Optional: Install curl for container-level health checks
|
||||||
RUN apk add --no-cache curl
|
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 only the compiled application binary from the builder stage
|
||||||
COPY --from=builder /app/app /app/app
|
COPY --from=builder /app/app /app/app
|
||||||
|
Reference in New Issue
Block a user