Object_Remover / Dockerfile
Man-isH-07
v1
1595096
raw
history blame
592 Bytes
# Base image with Python
FROM python:3.10
# Install git
RUN apt-get update && apt-get install -y git
# Copy all files to the container
COPY . .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install "inference[transformers,sam,clip,gaze,grounding-dino,yolo-world]" xformers torchvision torchaudio supervision onnxruntime onnxruntime-gpu --extra-index-url https://download.pytorch.org/whl/cu124
RUN pip install -r requirements.txt
RUN pip install aiohttp==3.10.11
# Expose the port Gradio runs on
EXPOSE 7860
# Command to run the app
CMD ["python", "app.py"]