Download Dockerfile from vrkforever/disaster-classification-api: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/vrkforever/disaster-classification-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vrkforever/disaster-classification-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vrkforever/disaster-classification-api/resolve/main/Dockerfile
438 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Create and set permissions for the NLTK data directory | |
| RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data | |
| COPY ./app.py /code/app.py | |
| COPY ./disaster_classification_model.joblib /code/disaster_classification_model.joblib | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |