FROM rust:1.88.0-alpine AS builder
WORKDIR /app
COPY . .
RUN apk add --no-cache musl-dev gcc
RUN cargo build --release
# Final stage
FROM scratch
EXPOSE 8000
COPY --from=builder /app/target/release/rambl_rs /rambl_rs
# Command to run
CMD ["/rambl_rs"]