2
2
3
3
FROM alpine:3.17 as xformers
4
4
RUN apk add --no-cache aria2
5
- RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/4.1 .0/xformers-0.0.16.dev421 -cp310-cp310-manylinux2014_x86_64.whl'
5
+ RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0 .0/xformers-0.0.17.dev449 -cp310-cp310-manylinux2014_x86_64.whl'
6
6
7
7
8
8
@@ -12,7 +12,7 @@ SHELL ["/bin/bash", "-ceuxo", "pipefail"]
12
12
ENV DEBIAN_FRONTEND=noninteractive PIP_EXISTS_ACTION=w PIP_PREFER_BINARY=1
13
13
14
14
15
- RUN pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
15
+ RUN --mount=type=cache,target=/root/.cache/pip pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
16
16
17
17
RUN apt-get update && apt-get install git -y && apt-get clean
18
18
@@ -41,15 +41,16 @@ ln -sf opencv4.pc opencv.pc
41
41
EOF
42
42
43
43
44
- ARG BRANCH=main SHA=80c5322cccc6f9c6f77aaea80b4bb95e25bc05ba
44
+ ARG BRANCH=main SHA=6551527fe249dc7a44e3fab9db9451c0dc3ad851
45
45
RUN --mount=type=cache,target=/root/.cache/pip <<EOF
46
46
git fetch
47
47
git reset --hard
48
48
git checkout ${BRANCH}
49
49
git reset --hard ${SHA}
50
- egrep -v '^-e .' environments-and-requirements/requirements-lin-cuda.txt > req.txt
51
- pip install -r req.txt
52
- rm req.txt
50
+ pip install .
51
+ # egrep -v '^-e .' environments-and-requirements/requirements-lin-cuda.txt > req.txt
52
+ # pip install -r req.txt
53
+ # rm req.txt
53
54
EOF
54
55
55
56
@@ -62,9 +63,10 @@ RUN --mount=type=cache,target=/root/.cache/pip \
62
63
RUN touch invokeai.init
63
64
COPY . /docker/
64
65
66
+ # mkdir configs && cp invokeai/configs/INITIAL_MODELS.yaml configs/models.yaml
65
67
66
- ENV ROOT=/stable-diffusion PYTHONPATH="${PYTHONPATH}:${ROOT}" PRELOAD=false CLI_ARGS="" HF_HOME=/root/.cache/huggingface
68
+ ENV PYTHONUNBUFFERED=1 ROOT=/stable-diffusion PYTHONPATH="${PYTHONPATH}:${ROOT}" PRELOAD=false CLI_ARGS="" HF_HOME=/root/.cache/huggingface
67
69
EXPOSE 7860
68
70
69
71
ENTRYPOINT ["/docker/entrypoint.sh" ]
70
- CMD python3 -u scripts/invoke.py --web --host 0.0.0.0 --port 7860 --config /docker/models.yaml --root_dir ${ROOT} --outdir /output/invoke ${CLI_ARGS}
72
+ CMD invokeai --web --host 0.0.0.0 --port 7860 --config /docker/models.yaml --root_dir ${ROOT} --outdir /output/invoke ${CLI_ARGS}
0 commit comments