distroless
distroless copied to clipboard
gcr.io/distroless/cc for rust returns a 404 error when using actix-web
Since 2-3 days I get a 404 error when using the following Dockerfile and then calling the endpoints of my REST API
# Build stage
FROM rust:slim-buster as builder
RUN apt-get update && \
apt-get install -y pkg-config make g++ libssl-dev cmake libmariadb-dev-compat openssl && \
rustup target add x86_64-unknown-linux-gnu
WORKDIR /var/www/app
COPY . .
RUN cargo build
# Prod stage, removing the Rust toolchain
FROM gcr.io/distroless/cc
COPY --from=builder /var/www/app/config /config
COPY --from=builder /var/www/app/target/debug/my-app /
CMD ["./my-app"]
This appears to be an issue with your app, not necessarily with distroless?