NIKHTU03 commited on
Commit
73035f5
·
verified ·
1 Parent(s): bf844ca

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +39 -0
Dockerfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM lbjlaq/antigravity-manager:latest
2
+ # Updated 2026-03-12 v4.1.29
3
+ USER root
4
+
5
+ # 1. Install socat (port forwarding) and xvfb (virtual display)
6
+ RUN apt-get update && apt-get install -y socat xvfb && rm -rf /var/lib/apt/lists/*
7
+
8
+ # 2. Set working directory
9
+ WORKDIR /app
10
+
11
+ # 3. Configure environment
12
+ ENV PORT=7860
13
+ EXPOSE 7860
14
+ ENV DISPLAY=:99
15
+
16
+ # 4. Create config directory with proper permissions
17
+ RUN mkdir -p /root/.antigravity_tools && chmod -R 777 /root/.antigravity_tools
18
+
19
+ # 5. Create startup script
20
+ RUN echo '#!/bin/bash
21
+ echo "Starting socat proxy 7860 -> 8045..."
22
+ socat TCP-LISTEN:7860,fork,bind=0.0.0.0 TCP:127.0.0.1:8045 &
23
+
24
+ echo "Starting Xvfb (Virtual Display)..."
25
+ Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
26
+ sleep 2
27
+
28
+ echo "Starting Antigravity Tools..."
29
+ # Try binary first, fallback to node if not found
30
+ if [ -f "./antigravity-tools" ]; then
31
+ exec ./antigravity-tools headless
32
+ else
33
+ exec node dist/main.js
34
+ fi
35
+ ' > /start.sh && chmod +x /start.sh
36
+
37
+ # 6. Set entrypoint
38
+ ENTRYPOINT []
39
+ CMD ["/bin/bash", "/start.sh"]