omniparser-fast / Dockerfile
banao-tech's picture
Update Dockerfile
00a6698 verified
raw
history blame
557 Bytes
# Base image
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
# Install system dependencies
RUN apt-get update && apt-get install -y \
libglib2.0-0 \
libgl1-mesa-glx \
libgthread-2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy the project files
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port (matching your app configuration)
EXPOSE 7860
# Start the FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]