Skip to content

Commit

Permalink
docker: delay start
Browse files Browse the repository at this point in the history
  • Loading branch information
lss233 committed Dec 14, 2022
1 parent 88cf074 commit 4174304
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apt-get update && \
wget -qO /usr/share/keyrings/xpra-2022.gpg https://xpra.org/xpra-2022.gpg && \
echo deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/xpra-2022.gpg] https://xpra.org/ bullseye main | tee /etc/apt/sources.list.d/xpra.list && \
apt-get update && \
apt install --no-install-recommends xpra libgl1-mesa-dri -yq
apt install --no-install-recommends xpra xvfb libgl1-mesa-dri xauth -yq


RUN set -eux; \
Expand Down
6 changes: 3 additions & 3 deletions docker/start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

xpra start :99 --no-daemon &>/dev/null &

xpra start :99 --no-daemon --html=on &
echo "Waiting for xpra to start"
export DISPLAY=:99

sleep 10
cd /app
python bot.py

0 comments on commit 4174304

Please sign in to comment.