Skip to content

Commit 2bcca37

Browse files
committed
Docker working tkinter
1 parent c0eb172 commit 2bcca37

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ COPY --chown=appuser . .
4646
STOPSIGNAL SIGINT
4747
ENV LD_PRELOAD=libtcmalloc.so
4848
ENV PATH="$PATH:/home/appuser/.local/bin"
49-
CMD python3 "./kohya_gui.py" ${CLI_ARGS} --listen 0.0.0.0 --server_port 7860 --headless
49+
CMD python3 "./kohya_gui.py" ${CLI_ARGS} --listen 0.0.0.0 --server_port 7860

docker-compose.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
environment:
1313
CLI_ARGS: ""
1414
SAFETENSORS_FAST_GPU: 1
15+
DISPLAY: $DISPLAY
1516
tmpfs:
1617
- /tmp
1718
volumes:
@@ -21,6 +22,7 @@ services:
2122
- ./.cache/config:/app/appuser/.config
2223
- ./.cache/nv:/home/appuser/.nv
2324
- ./.cache/keras:/home/appuser/.keras
25+
- /tmp/.X11-unix:/tmp/.X11-unix
2426
deploy:
2527
resources:
2628
reservations:

0 commit comments

Comments
 (0)