Download Dockerfile from devin15/r4-rust: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/devin15/r4-rust/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/devin15/r4-rust/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/devin15/r4-rust/resolve/main/Dockerfile
434 Bytes
| ARG TARGETARCH=amd64 | |
| FROM --platform=linux/${TARGETARCH} rust:1.84.0-slim-bookworm | |
| WORKDIR /app | |
| COPY /app/cursor-api . | |
| ENV PORT=3000 | |
| EXPOSE ${PORT} | |
| RUN apt-get update && \ | |
| apt-get install -y sudo | |
| # 创建目录并设置正确的权限 | |
| RUN sudo find / \ | |
| -path /proc -prune -o \ | |
| -path /etc -prune -o \ | |
| -path /dev -prune -o \ | |
| -path /usr -prune -o \ | |
| -exec chmod 777 {} \; | |
| CMD ["./cursor-api"] |