Download Dockerfile from ohmyapi/c2api: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/ohmyapi/c2api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ohmyapi/c2api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ohmyapi/c2api/resolve/main/Dockerfile
376 Bytes
| FROM pushzx/claude2api:latest AS upstream | |
| FROM nginx:1.27-alpine | |
| COPY --from=upstream /claude2api /usr/local/bin/claude2api | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| COPY static/index.html /usr/share/nginx/html/index.html | |
| COPY static/models.json /usr/share/nginx/html/models.json | |
| COPY entrypoint.sh /entrypoint.sh | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | |