File size: 509 Bytes
68645c5 f2f3018 68645c5 1aed561 68645c5 81e0ab5 68645c5 f2f3018 68645c5 f2f3018 057363e 68645c5 f2f3018 68645c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM python:3.11-slim
WORKDIR /app
# Install minimal system dependencies
RUN apt-get update && apt-get install -y \
libgomp1 \
libglib2.0-0 \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create directory for LoRAs
RUN mkdir -p /app/models/loras
# Copy the FastAPI application
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |