Smart-Statue-Detector / Dockerfile
morefaat69's picture
Update Dockerfile
6566a1f verified
Raw
History Blame Contribute Delete
443 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY best.pt .
COPY yolov8n.pt .
RUN mkdir -p /tmp/uploads
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]