-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Docker. Container can easily be started with docker…
… compose
- Loading branch information
1 parent
82a973c
commit 5070021
Showing
7 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
models | ||
models/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM python:3.10-bookworm | ||
|
||
WORKDIR /webui | ||
|
||
RUN apt-get update && \ | ||
apt-get install ffmpeg libsm6 libxext6 dos2unix google-perftools -y | ||
|
||
COPY . . | ||
|
||
RUN dos2unix ./webui.sh ./webui-user.sh | ||
|
||
RUN groupadd --system --gid 1000 webui && \ | ||
useradd webui --uid 1000 --gid 1000 --create-home --shell /bin/bash && \ | ||
chown -R webui:webui . | ||
USER 1000:1000 | ||
|
||
RUN ./webui.sh --prepare-environment-only --skip-torch-cuda-test | ||
|
||
CMD [ "./webui.sh", "--skip-prepare-environment" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
webui: | ||
build: . | ||
volumes: | ||
- type: bind | ||
source: ./models | ||
target: /webui/models | ||
ports: | ||
- 7860:7860 | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: all | ||
capabilities: [gpu] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters