Spaces:
Sleeping
Sleeping
Download Dockerfile from TLM-Systems/TLM_AI: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/TLM-Systems/TLM_AI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TLM-Systems/TLM_AI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TLM-Systems/TLM_AI/resolve/main/Dockerfile
486 Bytes
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy requirements and install | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all your files (server.py, database.json) | |
| COPY . /code | |
| # Create a writable directory for the database (Hugging Face specific) | |
| RUN chmod 777 /code | |
| # Start the server on port 7860 (Hugging Face standard) | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] |