sam2-fastapi / Dockerfile
mila2030's picture
Update Dockerfile
ee01131 verified
raw
history blame contribute delete
313 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git
# install pip dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# copy source
COPY app.py .
# expose port
EXPOSE 7860
# run
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
COPY checkpoint checkpoint