FROM python:3.9-slim USER root WORKDIR /app COPY requirements.txt /app/ RUN pip install -r requirements.txt COPY app.py /app/ COPY assets /app/assets COPY instance /app/instance RUN chmod -R 777 /app/instance RUN pip install Flask EXPOSE 5000 CMD ["python", "app.py"]