fix: switch base image to debian:12-slim and install ca-certificates
This commit is contained in:
1 parent
ee05890661
commit
24187fc3b7
1 file changed
+2
-1
+2
-1
@@ -7,7 +7,8 @@ RUN mkdir src && echo "fn main() {}" > src/main.rs && cargo build --release && r
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN touch src/main.rs && cargo build --release
|
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
|
WORKDIR /app
|
||||||
COPY --from=builder /build/target/release/backend /app/backend
|
COPY --from=builder /build/target/release/backend /app/backend
|
||||||
ENV BIND_ADDR=0.0.0.0:8080
|
ENV BIND_ADDR=0.0.0.0:8080
|
||||||
|
|||||||
Reference in new issue
Block a user