Spaces:
Running
Running
Download Dockerfile from maptonik-ai/api-dev-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/spaces/maptonik-ai/api-dev-chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/maptonik-ai/api-dev-chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/maptonik-ai/api-dev-chatbot/resolve/main/Dockerfile
285 Bytes
| FROM python:3.12 | |
| EXPOSE 7860 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| CMD [ "bash", "./startup.sh"] | |