Spaces:
Paused
Paused
Download Dockerfile from triflix/rawdataapi: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/triflix/rawdataapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/triflix/rawdataapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/triflix/rawdataapi/resolve/main/Dockerfile
533 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV TMP_DIR=/tmp | |
| WORKDIR /workspace | |
| COPY requirements.txt /workspace/ | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential \ | |
| && pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt \ | |
| && apt-get purge -y --auto-remove build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # copy package folder | |
| COPY app /workspace/app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |