aiBrainTumor / Dockerfile
vincentcps's picture
Update Dockerfile
58b9fbc verified
raw
history blame contribute delete
341 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends libsm6 libxext6 && rm -rf /var/lib/apt/lists/*
ENV PORT 7860
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY index.html .
COPY app.py .
CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --timeout 120 app:app