Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EvilWatermelon opened this issue Aug 24, 2023 · 1 comment

Comments

@EvilWatermelon
Copy link

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"]
@loosebazooka
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants