FROM python:3.9 WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt --extra-index-url https://download.pytorch.org/whl/cu113 COPY . . ENV FLASK_APP=app.py CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]