FROM python:3.9 WORKDIR /Flask_APP COPY ./requirements.txt /Flask_APP/requirements.txt RUN pip install --no-cache-dir --upgrade -r /Flask_APP/requirements.txt COPY ./app.py /Flask_APP/app.py COPY ./utils.py /Flask_APP/utils.py COPY ./templates /Flask_APP/templates COPY ./static /Flask_APP/static COPY ./Pdfs /Flask_APP/Pdfs COPY ./uploads /Flask_APP/uploads RUN chmod -R 777 /Flask_APP/uploads ENV FLASK_APP=app.py ENV FLASK_RUN_HOST=0.0.0.0 ENV FLASK_RUN_PORT=7860 CMD ["flask", "run"]