Download Dockerfile from GaneshArihanth/Sentiment-Analysis-BERT-API: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/GaneshArihanth/Sentiment-Analysis-BERT-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GaneshArihanth/Sentiment-Analysis-BERT-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GaneshArihanth/Sentiment-Analysis-BERT-API/resolve/main/Dockerfile
432 Bytes
| FROM python:3.9 | |
| # Set the working directory to /code | |
| WORKDIR /code | |
| # Copy the requirements file into the container at /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose port 7860 (required by Hugging Face Spaces) | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] | |