this repo has no description
at main 22 lines 419 B view raw
1# Build stage 2FROM rust:1.87-bookworm AS builder 3 4WORKDIR /app 5COPY . /app 6 7# Build the web binary 8ENV SQLX_OFFLINE=true 9RUN cargo build --release --package web 10 11# Runtime stage 12FROM debian:bookworm-slim 13 14RUN apt-get update \ 15 && apt-get install -y --no-install-recommends ca-certificates \ 16 && rm -rf /var/lib/apt/lists/* 17 18COPY --from=builder /app/target/release/web /usr/local/bin/web 19 20EXPOSE 3000 21 22CMD ["web"]