winpredict / Dockerfile
Tothemnoo's picture
Update Dockerfile
8d911a6 verified
Raw
History Blame Contribute Delete
344 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN python manage.py collectstatic --noinput
EXPOSE 7860
CMD ["gunicorn", "mlserve.wsgi:application", "--bind", "0.0.0.0:7860", "--workers", "2", "--threads", "4"]