FROM python:3.9 WORKDIR /code COPY ./requrements.txt /code/requrements.txt RUN python3 -m pip install --no-cache-dir --upgrade pip RUN pip install --no-cache-dir --upgrade -r /code/requrements.txt RUN pip install uvicorn COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] RUN mkdir index_store RUN chmod 777 index_store RUN mkdir /code/index_store/surveys_storage_xls RUN chmod 777 /code/index_store/surveys_storage_xls RUN mkdir doc_storage RUN chmod 777 doc_storage