Spaces:
Running
Running
Download Dockerfile from h3nock/scriptify-api: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/h3nock/scriptify-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/h3nock/scriptify-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/h3nock/scriptify-api/resolve/main/Dockerfile
571 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY main.py . | |
| COPY inference_utils.py . | |
| RUN mkdir -p packaged_models | |
| COPY ./packaged_models/* ./packaged_models/ | |
| COPY ./styles/* ./styles/ | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV PYTHONPATH=/app | |
| ENV PYTHONUNBUFFERED=1 | |
| # Run the application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |