Revert computer dockerfile startup command to fix operating it

This commit is contained in:
Debanjum
2025-06-01 20:39:58 -07:00
parent a236288ca9
commit 82ee0f5451
2 changed files with 5 additions and 8 deletions

View File

@@ -117,14 +117,8 @@ ENV DISPLAY=":$DISPLAY_NUM"
# Expose VNC on port 5900
# run Xvfb, x11vnc, Xfce (no login manager)
EXPOSE 5900
CMD ["/bin/sh", "-c", " USER_ID=$(id -u); \
RUNTIME_DIR_PATH=/run/user/$USER_ID; \
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; \
CMD ["/bin/sh", "-c", " export XDG_RUNTIME_DIR=/run/user/$(id -u); \
mkdir -p $XDG_RUNTIME_DIR && chown $USERNAME:$USERNAME $XDG_RUNTIME_DIR && chmod 0700 $XDG_RUNTIME_DIR; \
Xvfb $DISPLAY -screen 0 ${WIDTH}x${HEIGHT}x24 -dpi 96 -auth /home/$USERNAME/.Xauthority >/dev/null 2>&1 & \
sleep 1; \
xauth add $DISPLAY . $(mcookie); \