Shinhati2023 commited on
Commit
d77bdf4
·
verified ·
1 Parent(s): e3d4397

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -21,7 +21,6 @@ RUN apt-get update && apt-get install -y \
21
  dbus-x11 \
22
  ffmpeg \
23
  ca-certificates \
24
- # Kasm specific perl dependencies
25
  ssl-cert \
26
  libswitch-perl \
27
  libyaml-tiny-perl \
@@ -45,14 +44,14 @@ USER user
45
  ENV HOME=/home/user
46
  WORKDIR $HOME
47
 
48
- # 5. Download Chromium (The Fix)
49
- # We fetch the 'LAST_CHANGE' file to get the latest valid version number automatically.
50
  RUN LAST_CHANGE=$(curl -sS https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media) && \
51
  echo "Downloading Chromium Build: $LAST_CHANGE" && \
52
  wget -q "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F${LAST_CHANGE}%2Fchrome-linux.zip?alt=media" -O chrome-linux.zip && \
53
  unzip -q chrome-linux.zip && \
54
  rm chrome-linux.zip && \
55
- mv chrome-linux /home/user/chrome-linux
56
 
57
  # 6. Prepare Start Script
58
  COPY --chown=user start.sh /start.sh
 
21
  dbus-x11 \
22
  ffmpeg \
23
  ca-certificates \
 
24
  ssl-cert \
25
  libswitch-perl \
26
  libyaml-tiny-perl \
 
44
  ENV HOME=/home/user
45
  WORKDIR $HOME
46
 
47
+ # 5. Download Chromium (FIXED)
48
+ # We removed the 'mv' command because unzip already places it in /home/user/chrome-linux
49
  RUN LAST_CHANGE=$(curl -sS https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media) && \
50
  echo "Downloading Chromium Build: $LAST_CHANGE" && \
51
  wget -q "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F${LAST_CHANGE}%2Fchrome-linux.zip?alt=media" -O chrome-linux.zip && \
52
  unzip -q chrome-linux.zip && \
53
  rm chrome-linux.zip && \
54
+ chmod +x /home/user/chrome-linux/chrome
55
 
56
  # 6. Prepare Start Script
57
  COPY --chown=user start.sh /start.sh