FROM python:3.9 WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ D2M_PORT=7860 \ GRADIO_PORT=8000 \ URL_GRADIO=https://localhost:8000/ COPY ./static/ ./ CMD ["python", "main.py"]