Download Dockerfile from xuuwe/uniapi: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/xuuwe/uniapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xuuwe/uniapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xuuwe/uniapi/resolve/main/Dockerfile
401 Bytes
| FROM yym68686/uni-api:latest | |
| RUN mkdir -p /data && chown -R 1000:1000 /data | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| DISABLE_DATABASE=true | |
| COPY --chown=user entrypoint.sh /home/user/entrypoint.sh | |
| RUN chmod +x /home/user/entrypoint.sh | |
| USER root | |
| RUN chmod 777 /home | |
| USER user | |
| WORKDIR /home/user | |
| ENTRYPOINT ["/home/user/entrypoint.sh"] | |