Spaces:
Runtime error
Runtime error
Download Dockerfile from 13nishit/EmailSpamDetection: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/13nishit/EmailSpamDetection/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/13nishit/EmailSpamDetection/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/13nishit/EmailSpamDetection/resolve/main/Dockerfile
624 Bytes
| #FROM python:3.9 | |
| #WORKDIR /code | |
| #COPY ./requirements.txt /code/requirements.txt | |
| #RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| #COPY . . | |
| # Use the official Python image as base | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| # Copy the requirements file into the container at /code | |
| COPY requirements.txt /code/ | |
| # Install any dependencies specified in requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the rest of the application code into the container at /code | |
| COPY . /code/ | |
| CMD ["gunicorn","-b" ,"0.0.0.0:7860","app.main:app"] | |