FROM rust:1 AS builder WORKDIR /usr/src/rooster COPY Cargo.toml Cargo.lock Rocket.toml ./ COPY src ./src RUN cargo install --path . FROM debian:buster-slim ENV ROCKET_ADDRESS=0.0.0.0 EXPOSE 8000 COPY --from=builder /usr/local/cargo/bin/rooster /usr/local/bin/rooster CMD ["rooster"]