testrust / Dockerfile
Kgshop's picture
Update Dockerfile
6609975 verified
raw
history blame contribute delete
294 Bytes
FROM rust:1.75-slim as builder
WORKDIR /app
COPY . .
RUN cargo build --release
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/app /usr/local/bin/app
ENV PORT=7860
EXPOSE 7860
CMD ["app"]