Spaces:
Paused
Paused
Download Dockerfile from focusprogram/sk-new-api: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/focusprogram/sk-new-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/focusprogram/sk-new-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/focusprogram/sk-new-api/resolve/main/Dockerfile
499 Bytes
| FROM calciumion/new-api:latest | |
| RUN apk add --no-cache pcre2 | |
| COPY --from=nginx:alpine /etc/nginx /etc/nginx | |
| COPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| RUN mkdir -p /var/log/nginx && \ | |
| mkdir -p /var/cache/nginx && \ | |
| mkdir -p /var/run && \ | |
| chmod -R 777 /var/log/nginx && \ | |
| chmod -R 777 /var/cache/nginx && \ | |
| chmod -R 777 /var/run | |
| WORKDIR /data | |
| EXPOSE 3001 | |
| RUN chmod 777 -R /data | |
| ENTRYPOINT ["sh", "-c", "nginx & /one-api"] |