Dermo_AI / Dockerfile
mani880740255's picture
Update Dockerfile
30f876c verified
Raw
History Blame Contribute Delete
420 Bytes
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["gunicorn", "hostingg.app:app", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120"]