File size: 1,089 Bytes
1e47f49
a09fcb5
 
 
 
67d05d4
a09fcb5
1e47f49
4d74380
 
 
a09fcb5
 
 
 
 
67d05d4
a09fcb5
 
 
4d74380
 
a09fcb5
4d74380
 
1e47f49
 
 
 
e57f9c2
1e47f49
 
4d74380
0c21612
a09fcb5
1e47f49
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Antigravity Docker Sandbox with VS Code Interface
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install basic packages
RUN apt update && \
    apt install -y curl gnupg apt-transport-https ca-certificates python3 python3-pip

# Add Antigravity repository
RUN mkdir -p /etc/apt/keyrings && \
    curl -fsSL https://us-central1-apt.pkg.dev/doc/repo-signing-key.gpg | \
      gpg --dearmor --yes -o /etc/apt/keyrings/antigravity-repo-key.gpg && \
    echo "deb [signed-by=/etc/apt/keyrings/antigravity-repo-key.gpg] https://us-central1-apt.pkg.dev/projects/antigravity-auto-updater-dev/ antigravity-debian main" | \
      tee /etc/apt/sources.list.d/antigravity.list > /dev/null

# Install Antigravity
RUN apt update && \
    apt install -y antigravity

# Create user
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user

# Install requests for web interface
RUN pip3 install requests

# Copy VS Code web interface
COPY app.py /home/user/app.py

# Set environment variables
ENV PORT=7860
ENV HOME=/home/user

# Start VS Code web interface
CMD ["python3", "/home/user/app.py"]