Download Dockerfile from SolverForge/solverforge-deliveries: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/SolverForge/solverforge-deliveries/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SolverForge/solverforge-deliveries/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SolverForge/solverforge-deliveries/resolve/main/Dockerfile
840 Bytes
| # Multi-stage build for solverforge-deliveries. | |
| # | |
| # The app is intended to build from registry dependency declarations, so the | |
| # repository root is the complete Docker build context: | |
| # docker build -f Dockerfile -t solverforge-deliveries . | |
| FROM rust:1.95-alpine AS builder | |
| RUN apk add --no-cache musl-dev | |
| WORKDIR /build | |
| COPY Cargo.toml Cargo.lock ./ | |
| COPY src/ ./src/ | |
| COPY static/ ./static/ | |
| COPY solver.toml ./solver.toml | |
| RUN cargo build --release --target x86_64-unknown-linux-musl | |
| FROM alpine:latest | |
| RUN apk add --no-cache ca-certificates | |
| WORKDIR /app | |
| COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/solverforge_deliveries ./solverforge_deliveries | |
| COPY --from=builder /build/static/ ./static/ | |
| COPY --from=builder /build/solver.toml ./solver.toml | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["./solverforge_deliveries"] | |