Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +10 -4
Dockerfile
CHANGED
|
@@ -1,14 +1,20 @@
|
|
| 1 |
FROM python:3.10-slim
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
COPY . .
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 git
|
| 6 |
|
| 7 |
-
|
| 8 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 13 |
-
RUN python -c "from diffusers.pipelines.flux.pipeline_flux import FluxPipeline; print('✅ FluxPipeline imported successfully!')"
|
| 14 |
-
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
WORKDIR /app
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 git
|
| 7 |
|
| 8 |
+
# Install git-lfs first if the repo uses LFS
|
| 9 |
+
RUN apt-get install -y git-lfs && git lfs install
|
| 10 |
+
|
| 11 |
+
# Clone the repo first
|
| 12 |
+
RUN git clone https://github.com/Yuanshi9815/OminiControl.git /tmp/OminiControl
|
| 13 |
|
| 14 |
+
# Manually install dependencies and the repo
|
| 15 |
+
RUN pip install --no-cache-dir /tmp/OminiControl
|
| 16 |
+
|
| 17 |
+
# Install remaining requirements
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|