oralscan-model-api / Dockerfile
Papizee's picture
Update Dockerfile
501fd60 verified
raw
history blame
417 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies (fixed for newer Debian)
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your model and app
COPY model.keras .
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]