Download Dockerfile from ohmyapi/newapi: direct link, hf CLI and curl.
- Browser
- Download file 228 Bytes
-
https://huggingface.co/spaces/ohmyapi/newapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ohmyapi/newapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ohmyapi/newapi/resolve/main/Dockerfile
228 Bytes
| FROM calciumion/new-api:latest | |
| RUN apt-get update && apt-get install -y redis-server && rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p /tmp/logs | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 3000 | |
| ENTRYPOINT ["/start.sh"] | |