FROM python:3.10-slim | |
# Install deps | |
RUN pip install --no-cache-dir flask requests gunicorn | |
WORKDIR /app | |
# Copy code and default image | |
COPY app.py /app/app.py | |
COPY default.png /app/default.png | |
EXPOSE 7860 | |
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |