Spaces:
Runtime error
Runtime error
Download Dockerfile from Birkhoff-Archive/oneapi: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/Birkhoff-Archive/oneapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Birkhoff-Archive/oneapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Birkhoff-Archive/oneapi/resolve/main/Dockerfile
468 Bytes
| ARG HF_TOKEN | |
| ARG HF_REPO_ID | |
| ARG SYNC_INTERVAL | |
| # 基于 alpine linux, 需要 /bin/ash | |
| FROM justsong/one-api | |
| # 从环境变量中设置端口 | |
| ENV PORT=7860 | |
| RUN mkdir /data/logs | |
| RUN chmod -R 777 /data | |
| RUN mkdir /sync | |
| RUN chmod -R 777 /sync | |
| WORKDIR /app | |
| RUN chmod -R 777 /app | |
| COPY . . | |
| RUN apk update && \ | |
| apk add --no-cache python3 py3-pip && \ | |
| pip install -r requirements.txt --break-system-packages | |
| WORKDIR /data | |
| ENTRYPOINT ["/bin/sh", "/app/start.sh"] | |