mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-05 14:35:44 +00:00
Move label to x-gpu-config, add "x", use git image
This commit is contained in:
parent
a7036c6072
commit
40fd30092d
3 changed files with 19 additions and 16 deletions
|
|
@ -1,8 +1,6 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM alpine:3.17 as download
|
||||
|
||||
RUN apk add git
|
||||
FROM alpine/git:2.36.2 as download
|
||||
|
||||
COPY clone.sh /clone.sh
|
||||
|
||||
|
|
@ -46,7 +44,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
|||
ENV ROOT=/stable-diffusion-webui
|
||||
|
||||
|
||||
COPY --from=download /git/ ${ROOT}
|
||||
COPY --from=download /repositories/ ${ROOT}/repositories/
|
||||
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate
|
||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||
pip install -r ${ROOT}/repositories/CodeFormer/requirements.txt
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -Eeuo pipefail
|
||||
set -Eeuox pipefail
|
||||
|
||||
mkdir -p git/repositories/"$1"
|
||||
cd git/repositories/"$1"
|
||||
mkdir -p /repositories/"$1"
|
||||
cd /repositories/"$1"
|
||||
git init
|
||||
git remote add origin "$2"
|
||||
git fetch origin "$3" --depth=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue