fetosafe / Dockerfile
nickyai's picture
Initial FetoSafe deploy: Flask + XGBoost placenta crossing predictor
9777d46
Raw History Blame Contribute Delete
430 Bytes
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PORT=7860
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libxrender1 libxext6 libsm6 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]