Download Dockerfile from MuseSceneLab/msl-internal-api-v7-part6: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/MuseSceneLab/msl-internal-api-v7-part6/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MuseSceneLab/msl-internal-api-v7-part6/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MuseSceneLab/msl-internal-api-v7-part6/resolve/main/Dockerfile
273 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--preload", "--timeout", "120", "bert_api:app"] | |