Spaces:
Running
Running
Download Dockerfile from Nebulixlabs/NebulixLabs-Router: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/Nebulixlabs/NebulixLabs-Router/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nebulixlabs/NebulixLabs-Router/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nebulixlabs/NebulixLabs-Router/resolve/main/Dockerfile
1.08 kB
| # FreeLLMAPI's actual API and dashboard are Node.js/React; use the upstream | |
| # release image, with a small Python launcher to configure Hugging Face Spaces. | |
| FROM ghcr.io/tashfeenahmed/freellmapi:v0.16.7 | |
| USER root | |
| # Python launcher + pip keep the Space package Python-friendly and install the | |
| # declared requirements.txt. No third-party Python dependencies are currently | |
| # needed by app.py. | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends python3 python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN if grep -qEv '^[[:space:]]*(#.*)?$' /app/requirements.txt; then \ | |
| python3 -m pip install --break-system-packages --no-cache-dir -r /app/requirements.txt; \ | |
| fi | |
| COPY app.py /app/app.py | |
| ENV NODE_ENV=production \ | |
| PORT=7860 \ | |
| FREELLMAPI_DATA_DIR=/data | |
| EXPOSE 7860 | |
| # Explicit CMD is important: without a command, the inherited setpriv-based | |
| # upstream entrypoint can emit "setpriv: No program specified". | |
| ENTRYPOINT ["python3", "/app/app.py"] | |
| CMD ["node", "server/dist/index.js"] | |