AZILS commited on
Commit
ea7bf08
·
verified ·
1 Parent(s): 27a27b8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM ubuntu:22.04
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install all required libraries for VS Code Web
7
  RUN apt update && \
8
  apt install -y \
9
  curl \
@@ -16,6 +16,8 @@ RUN apt update && \
16
  libasound2 \
17
  libxshmfence1 \
18
  libnss3 \
 
 
19
  git \
20
  sudo \
21
  wget
@@ -28,8 +30,12 @@ RUN mkdir -p /etc/apt/keyrings && \
28
  tee /etc/apt/sources.list.d/antigravity.list > /dev/null
29
 
30
  # Install FULL Antigravity suite
31
- RUN apt update && \
32
- apt install -y antigravity
 
 
 
 
33
 
34
  # Configure Hugging Face user
35
  RUN useradd -m -u 1000 user && \
@@ -38,7 +44,7 @@ USER user
38
  ENV HOME=/home/user
39
  WORKDIR /home/user
40
 
41
- # Create needed directories
42
  RUN mkdir -p /home/user/.antigravity-server /home/user/.antigravity-extensions
43
 
44
  # Set environment variables
@@ -49,5 +55,4 @@ EXPOSE 7860
49
 
50
  # Start the REAL VS Code Web Server
51
  # We use --host 0.0.0.0 and --port 7860 for Hugging Face
52
- # We use --without-connection-token to bypass the login screen
53
  CMD ["antigravity", "serve-web", "--host", "0.0.0.0", "--port", "7860", "--accept-server-license-terms", "--without-connection-token"]
 
3
 
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
+ # Install all core and extended libraries for VS Code Web engine
7
  RUN apt update && \
8
  apt install -y \
9
  curl \
 
16
  libasound2 \
17
  libxshmfence1 \
18
  libnss3 \
19
+ libkrb5-3 \
20
+ libonig5 \
21
  git \
22
  sudo \
23
  wget
 
30
  tee /etc/apt/sources.list.d/antigravity.list > /dev/null
31
 
32
  # Install FULL Antigravity suite
33
+ RUN apt update && apt install -y antigravity
34
+
35
+ # CRITICAL FIX: The launcher looks for the tunnel binary in a specific path
36
+ # We create the path and symlink the main binary to 'antigravity-tunnel'
37
+ RUN mkdir -p /usr/share/antigravity/bin && \
38
+ ln -s /usr/bin/antigravity /usr/share/antigravity/bin/antigravity-tunnel
39
 
40
  # Configure Hugging Face user
41
  RUN useradd -m -u 1000 user && \
 
44
  ENV HOME=/home/user
45
  WORKDIR /home/user
46
 
47
+ # Create needed directories for VS Code data
48
  RUN mkdir -p /home/user/.antigravity-server /home/user/.antigravity-extensions
49
 
50
  # Set environment variables
 
55
 
56
  # Start the REAL VS Code Web Server
57
  # We use --host 0.0.0.0 and --port 7860 for Hugging Face
 
58
  CMD ["antigravity", "serve-web", "--host", "0.0.0.0", "--port", "7860", "--accept-server-license-terms", "--without-connection-token"]