wayfu-amazing-art-v2 / Dockerfile
orange15's picture
Update Dockerfile
d82d9af verified
raw
history blame contribute delete
558 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 git
# Install git-lfs first if the repo uses LFS
RUN apt-get install -y git-lfs && git lfs install
# Clone the repo first
RUN git clone https://github.com/Yuanshi9815/OminiControl.git /tmp/OminiControl
# Manually install dependencies and the repo
RUN pip install --no-cache-dir /tmp/OminiControl
# Install remaining requirements
RUN pip install --no-cache-dir -r requirements.txt
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]