-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
49 lines (38 loc) · 1.16 KB
/
dockerfile
File metadata and controls
49 lines (38 loc) · 1.16 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
xfce4 xfce4-terminal \
tigervnc-standalone-server tigervnc-common \
x11vnc \
xvfb \
wget \
net-tools \
curl \
python3 python3-pip \
python3-websockify \
supervisor \
nodejs npm \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Clone noVNC and websockify
RUN git clone https://github.com/novnc/noVNC.git /opt/noVNC && \
git clone https://github.com/novnc/websockify /opt/noVNC/utils/websockify
# Create .xinitrc for root to start xfce4 session properly
RUN echo "exec startxfce4" > /root/.xinitrc
# Set working directory for your agent code
WORKDIR /agent
# Copy dependency files first for better caching
COPY pyproject.toml ./
RUN pip install uv && uv sync
# Copy the rest of the code
COPY . .
# Ensure ~/workspace exists inside the container
RUN mkdir -p /root/workspace
WORKDIR /workspace
# Supervisor config
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Expose VNC and noVNC ports
EXPOSE 5900 6080
# Start Supervisor in foreground
CMD ["/usr/bin/supervisord", "-n"]