Download Dockerfile from rasmodev/Covid19_Tweet_Sentiment_Analysis_App: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/spaces/rasmodev/Covid19_Tweet_Sentiment_Analysis_App/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rasmodev/Covid19_Tweet_Sentiment_Analysis_App/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rasmodev/Covid19_Tweet_Sentiment_Analysis_App/resolve/main/Dockerfile
616 Bytes
| # Use an official Python runtime as the base image | |
| FROM python:3.9-slim | |
| # Set the working directory within the container | |
| WORKDIR /app | |
| # Copy the requirements.txt file into the container | |
| COPY ./requirements.txt /app/requirements.txt | |
| # Install the Python dependencies | |
| RUN pip install -r /app/requirements.txt | |
| # Copy the Gradio application code into the container | |
| COPY ./app.py /app/app.py | |
| # Download NLTK resources | |
| RUN python -m nltk.downloader stopwords | |
| RUN python -m nltk.downloader wordnet | |
| # Expose port 7860 to access the Gradio interface | |
| EXPOSE 7860 | |
| # Command to run the Gradio app | |
| CMD ["python", "app.py"] |