Spaces:
Paused
Paused
Download Dockerfile from junaid17/sentiment-analysis: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/spaces/junaid17/sentiment-analysis/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/junaid17/sentiment-analysis/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/junaid17/sentiment-analysis/resolve/main/Dockerfile
508 Bytes
| FROM python:3.9-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # System deps for sklearn / xgboost / numpy | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| gcc \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |