Download Dockerfile from Yabuku/Capstone: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/Yabuku/Capstone/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Yabuku/Capstone/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Yabuku/Capstone/resolve/main/Dockerfile
372 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV HF_HUB_ENABLE_HF_TRANSFER=1 | |
| ENV PORT=7860 | |
| RUN mkdir -p /data | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-c", "gunicorn_config.py", "server:app"] |