Download Dockerfile from Kgshop/testrust: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/Kgshop/testrust/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kgshop/testrust/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kgshop/testrust/resolve/main/Dockerfile
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"] |