distroless icon indicating copy to clipboard operation
distroless copied to clipboard

gcr.io/distroless/cc for rust returns a 404 error when using actix-web

Open EvilWatermelon opened this issue 2 years ago • 1 comments

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"]

EvilWatermelon avatar Aug 24 '23 08:08 EvilWatermelon

This appears to be an issue with your app, not necessarily with distroless?

loosebazooka avatar Aug 30 '23 19:08 loosebazooka