Spaces:
Sleeping
Sleeping
Download Dockerfile from Czjun/Transformer: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/Czjun/Transformer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Czjun/Transformer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Czjun/Transformer/resolve/main/Dockerfile
280 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |