Spaces:
Build error
Build error
Download Dockerfile from llepogam/hate-speech-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 479 Bytes
-
https://huggingface.co/spaces/llepogam/hate-speech-detection-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/llepogam/hate-speech-detection-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/llepogam/hate-speech-detection-api/resolve/main/Dockerfile
479 Bytes
| FROM continuumio/miniconda3 | |
| WORKDIR /home/app | |
| RUN apt-get update -y | |
| RUN apt-get install nano unzip | |
| RUN apt install curl -y | |
| RUN curl -fsSL https://get.deta.dev/cli.sh | sh | |
| COPY requirements.txt /dependencies/requirements.txt | |
| RUN pip install -r /dependencies/requirements.txt | |
| # Download and install SpaCy model | |
| RUN python -m spacy download en_core_web_sm | |
| COPY . /home/app | |
| CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker --timeout 120 |