Spaces:
Running
Running
Download Dockerfile from asriel14/article_classifier: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/asriel14/article_classifier/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/asriel14/article_classifier/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/asriel14/article_classifier/resolve/main/Dockerfile
341 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| ENV MODEL_DIR=/app/artifacts/article_topic_model | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |