mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-10 05:39:11 +00:00
Revert computer dockerfile startup command to fix operating it
This commit is contained in:
@@ -117,14 +117,8 @@ ENV DISPLAY=":$DISPLAY_NUM"
|
|||||||
# Expose VNC on port 5900
|
# Expose VNC on port 5900
|
||||||
# run Xvfb, x11vnc, Xfce (no login manager)
|
# run Xvfb, x11vnc, Xfce (no login manager)
|
||||||
EXPOSE 5900
|
EXPOSE 5900
|
||||||
CMD ["/bin/sh", "-c", " USER_ID=$(id -u); \
|
CMD ["/bin/sh", "-c", " export XDG_RUNTIME_DIR=/run/user/$(id -u); \
|
||||||
RUNTIME_DIR_PATH=/run/user/$USER_ID; \
|
mkdir -p $XDG_RUNTIME_DIR && chown $USERNAME:$USERNAME $XDG_RUNTIME_DIR && chmod 0700 $XDG_RUNTIME_DIR; \
|
||||||
sudo mkdir -p $RUNTIME_DIR_PATH; \
|
|
||||||
sudo chown $USERNAME:$USERNAME $RUNTIME_DIR_PATH; \
|
|
||||||
sudo chmod 0700 $RUNTIME_DIR_PATH; \
|
|
||||||
export XDG_RUNTIME_DIR=$RUNTIME_DIR_PATH; \
|
|
||||||
mkdir -p $XDG_RUNTIME_DIR/dconf; \
|
|
||||||
chmod 0700 $XDG_RUNTIME_DIR/dconf; \
|
|
||||||
Xvfb $DISPLAY -screen 0 ${WIDTH}x${HEIGHT}x24 -dpi 96 -auth /home/$USERNAME/.Xauthority >/dev/null 2>&1 & \
|
Xvfb $DISPLAY -screen 0 ${WIDTH}x${HEIGHT}x24 -dpi 96 -auth /home/$USERNAME/.Xauthority >/dev/null 2>&1 & \
|
||||||
sleep 1; \
|
sleep 1; \
|
||||||
xauth add $DISPLAY . $(mcookie); \
|
xauth add $DISPLAY . $(mcookie); \
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ services:
|
|||||||
computer:
|
computer:
|
||||||
container_name: khoj-computer
|
container_name: khoj-computer
|
||||||
image: ghcr.io/khoj-ai/khoj-computer:latest
|
image: ghcr.io/khoj-ai/khoj-computer:latest
|
||||||
|
# build:
|
||||||
|
# context: .
|
||||||
|
# dockerfile: computer.Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "5900:5900"
|
- "5900:5900"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user