File size: 332 Bytes
7304963 34b2a3b b54c245 34b2a3b a5a2904 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM python:3.11
WORKDIR /code
# Create and set permissions for the NLTK data directory
RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|