FROM python:3.9 | |
WORKDIR /ARAZIM | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
# Install Gunicorn | |
RUN pip install gunicorn | |
COPY . . | |
EXPOSE 7860 | |
CMD ["gunicorn", "wsgi:app", "--bind", "0.0.0.0:7860"] | |