embryo / Dockerfile
omgy's picture
Create Dockerfile
503a7b2 verified
raw
history blame contribute delete
545 Bytes
FROM python:3.10-slim
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all model files and app
COPY app.py .
COPY efficientnet_embryo_model.h5 .
COPY dual_branch_embryo_model.keras .
COPY morph_scaler.pkl .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]