Download Dockerfile from abdullah9873/js-engineer-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/abdullah9873/js-engineer-chatbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abdullah9873/js-engineer-chatbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abdullah9873/js-engineer-chatbot/resolve/main/Dockerfile
570 Bytes
| FROM python:3.13-slim | |
| WORKDIR /app | |
| # Install uv | |
| RUN pip install uv | |
| # Copy only project definition first | |
| COPY pyproject.toml . | |
| # Create virtual environment and install dependencies | |
| # We do NOT use --frozen to ensure we resolve correctly for Linux | |
| # We install the project dependencies | |
| RUN uv venv .venv | |
| ENV PATH="/app/.venv/bin:$PATH" | |
| RUN uv pip install -r pyproject.toml | |
| # Copy application code | |
| COPY . . | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Run using the python from the venv explicitly | |
| CMD ["/app/.venv/bin/uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |