Spaces:
Running
Running
Download Dockerfile.api from Sdm0/opencodereview: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/Dockerfile.api
- Command line
-
hf download hf://spaces/Sdm0/opencodereview/Dockerfile.api
-
curl -L -o Dockerfile.api https://huggingface.co/spaces/Sdm0/opencodereview/resolve/main/Dockerfile.api
406 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ build-essential libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "combined_server:app", "--host", "0.0.0.0", "--port", "7860"] | |