Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
3b37fefe
Unverified
Commit
3b37fefe
authored
Jul 16, 2024
by
Sayak Paul
Committed by
GitHub
Jul 16, 2024
Browse files
[Docker] include python3.10 dev and solve header missing problem (#8865)
include python3.10 dev and solve header missing problem
parent
bbd2f9d4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
docker/diffusers-pytorch-compile-cuda/Dockerfile
docker/diffusers-pytorch-compile-cuda/Dockerfile
+7
-7
docker/diffusers-pytorch-cpu/Dockerfile
docker/diffusers-pytorch-cpu/Dockerfile
+1
-0
docker/diffusers-pytorch-cuda/Dockerfile
docker/diffusers-pytorch-cuda/Dockerfile
+1
-0
docker/diffusers-pytorch-xformers-cuda/Dockerfile
docker/diffusers-pytorch-xformers-cuda/Dockerfile
+1
-0
No files found.
docker/diffusers-pytorch-compile-cuda/Dockerfile
View file @
3b37fefe
...
@@ -16,24 +16,24 @@ RUN apt install -y bash \
...
@@ -16,24 +16,24 @@ RUN apt install -y bash \
ca-certificates
\
ca-certificates
\
libsndfile1-dev
\
libsndfile1-dev
\
libgl1
\
libgl1
\
python3.
9
\
python3.
10
\
python3.
9
-dev
\
python3.
10
-dev
\
python3-pip
\
python3-pip
\
python3.
9
-venv
&&
\
python3.
10
-venv
&&
\
rm
-rf
/var/lib/apt/lists
rm
-rf
/var/lib/apt/lists
# make sure to use venv
# make sure to use venv
RUN
python3.
9
-m
venv /opt/venv
RUN
python3.
10
-m
venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3.
9
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
==
0.1.11
&&
\
RUN
python3.
10
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
==
0.1.11
&&
\
python3.
9
-m
uv pip
install
--no-cache-dir
\
python3.
10
-m
uv pip
install
--no-cache-dir
\
torch
\
torch
\
torchvision
\
torchvision
\
torchaudio
\
torchaudio
\
invisible_watermark
&&
\
invisible_watermark
&&
\
python3.
9
-m
pip
install
--no-cache-dir
\
python3.
10
-m
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-pytorch-cpu/Dockerfile
View file @
3b37fefe
...
@@ -16,6 +16,7 @@ RUN apt install -y bash \
...
@@ -16,6 +16,7 @@ RUN apt install -y bash \
ca-certificates
\
ca-certificates
\
libsndfile1-dev
\
libsndfile1-dev
\
python3.10
\
python3.10
\
python3.10-dev
\
python3-pip
\
python3-pip
\
libgl1
\
libgl1
\
python3.10-venv
&&
\
python3.10-venv
&&
\
...
...
docker/diffusers-pytorch-cuda/Dockerfile
View file @
3b37fefe
...
@@ -17,6 +17,7 @@ RUN apt install -y bash \
...
@@ -17,6 +17,7 @@ RUN apt install -y bash \
libsndfile1-dev
\
libsndfile1-dev
\
libgl1
\
libgl1
\
python3.10
\
python3.10
\
python3.10-dev
\
python3-pip
\
python3-pip
\
python3.10-venv
&&
\
python3.10-venv
&&
\
rm
-rf
/var/lib/apt/lists
rm
-rf
/var/lib/apt/lists
...
...
docker/diffusers-pytorch-xformers-cuda/Dockerfile
View file @
3b37fefe
...
@@ -17,6 +17,7 @@ RUN apt install -y bash \
...
@@ -17,6 +17,7 @@ RUN apt install -y bash \
libsndfile1-dev
\
libsndfile1-dev
\
libgl1
\
libgl1
\
python3.10
\
python3.10
\
python3.10-dev
\
python3-pip
\
python3-pip
\
python3.10-venv
&&
\
python3.10-venv
&&
\
rm
-rf
/var/lib/apt/lists
rm
-rf
/var/lib/apt/lists
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment