Download Dockerfile from VashuTheGreat2/Sentence-Translator: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/Sentence-Translator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/VashuTheGreat2/Sentence-Translator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/VashuTheGreat2/Sentence-Translator/resolve/main/Dockerfile
453 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Copy dependency files first (better caching) | |
| COPY requirements.txt pyproject.toml ./ | |
| # Install system dependencies required by LightGBM | |
| RUN apt-get update && apt-get install -y libgomp1 && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies | |
| RUN pip install --no-cache-dir . | |
| # Copy rest of the application | |
| COPY . . | |
| EXPOSE 7860 | |
| # Run FastAPI app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |