FROM python:3.9 | |
WORKDIR /code | |
COPY ./ /code | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt \ | |
&& mkdir -p /nltk_data \ | |
&& chmod -R 777 /nltk_data | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |
FROM python:3.9 | |
WORKDIR /code | |
COPY ./ /code | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt \ | |
&& mkdir -p /nltk_data \ | |
&& chmod -R 777 /nltk_data | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |