Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y \
|
|
14 |
&& rm -rf /var/lib/apt/lists/* \
|
15 |
&& git lfs install
|
16 |
|
|
|
|
|
17 |
WORKDIR /code
|
18 |
|
19 |
COPY ./requirements.txt /code/requirements.txt
|
@@ -46,9 +48,10 @@ WORKDIR $HOME/app
|
|
46 |
|
47 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
48 |
|
49 |
-
RUN
|
|
|
50 |
# pin to a specific commit
|
51 |
-
git checkout fc3588875759328d715fa07cc58178211a894386 && \
|
52 |
pip install --no-cache-dir xformers==0.0.20 triton==2.0.0 torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
53 |
pip install --no-cache-dir -r requirements_versions.txt
|
54 |
|
@@ -57,7 +60,7 @@ RUN git clone https://github.com/lllyasviel/Fooocus . && \
|
|
57 |
|
58 |
#RUN sed -i "s|def load_auth_data.*|def load_auth_data() pass|" /home/user/app/modules/auth.py
|
59 |
|
60 |
-
ARG FILENAME=auth.json
|
61 |
|
62 |
|
63 |
# remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
|
|
|
14 |
&& rm -rf /var/lib/apt/lists/* \
|
15 |
&& git lfs install
|
16 |
|
17 |
+
COPY Fooocus
|
18 |
+
|
19 |
WORKDIR /code
|
20 |
|
21 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
48 |
|
49 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
50 |
|
51 |
+
RUN
|
52 |
+
# git clone https://github.com/lllyasviel/Fooocus . && \
|
53 |
# pin to a specific commit
|
54 |
+
# git checkout fc3588875759328d715fa07cc58178211a894386 && \
|
55 |
pip install --no-cache-dir xformers==0.0.20 triton==2.0.0 torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
56 |
pip install --no-cache-dir -r requirements_versions.txt
|
57 |
|
|
|
60 |
|
61 |
#RUN sed -i "s|def load_auth_data.*|def load_auth_data() pass|" /home/user/app/modules/auth.py
|
62 |
|
63 |
+
#ARG FILENAME=auth.json
|
64 |
|
65 |
|
66 |
# remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
|