fix: switch base image to debian:12-slim and install ca-certificates

This commit is contained in:
phattaranun.a committed 2026-05-25 02:22:02 +07:00
1 parent ee05890661
commit 24187fc3b7
1 file changed
+2 -1
+2 -1
View File
@@ -7,7 +7,8 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && r
COPY . .
RUN touch src/main.rs && cargo build --release
FROM gcr.io/distroless/cc-debian12@sha256:aa0b7af67fa8211751ea6e00baa8373ba56cc1417ffc986ec9619bd0e1556b56
FROM debian:12-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /build/target/release/backend /app/backend
ENV BIND_ADDR=0.0.0.0:8080