Spaces:
Running
Running
File size: 448 Bytes
c3414ed e3b10d6 c28d081 e3b10d6 c28d081 6e1ff49 c28d081 fd9d115 e3b10d6 c28d081 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Use the official Python 3.11 image
FROM python:3.11
# Copy the current directory contents into the container at .
COPY . .
# Set the working directory to /
WORKDIR /
# Install requirements.txt
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
RUN python -m nltk.downloader stopwords punkt
# Start the FastAPI app on port 7860, the default port expected by Spaces
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |