Spaces:
Sleeping
Sleeping
Download Dockerfile from Idhammz/Sentiment-Analysis: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/spaces/Idhammz/Sentiment-Analysis/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Idhammz/Sentiment-Analysis/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Idhammz/Sentiment-Analysis/resolve/main/Dockerfile
471 Bytes
| FROM python:3.10.8-slim | |
| LABEL description="Sentiment classifier of tweets service" | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the requirements file into the container | |
| COPY requirements.txt /app/requirements.txt | |
| # Upgrade pip and install the dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Copy the rest of the application code into the container | |
| COPY . /app/ | |
| # Define the command to run the application | |
| CMD ["python", "app.py"] |