-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (62 loc) · 2.13 KB
/
Dockerfile
File metadata and controls
70 lines (62 loc) · 2.13 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM ubuntu:24.04
LABEL maintainer="xiechengqi01@gmail.com" \
version="1.0" \
description="Remote AI CLI"
USER root
# vnc
# novnc
# gotty
ENV \
VNC_RESOLUTION="1920x1080" \
NOVNC_VIEW_ONLY="false" \
NOVNC_WEB_INDEX="/app/index" \
IF_CCSWITCH_ON=true \
CCSWITCH_DISPLAY=:2 \
CCSWITCH_VNC_PORT="5700" \
CCSWITCH_NOVNC_PORT="7700" \
CCSWITCH_NOVNC_PASSWORD="" \
CCSWITCH_NOVNC_TITLE="CCSwitch" \
IF_TERMINAL_ON="true" \
TERMINAL_USER="" \
TERMINAL_PASSWORD="" \
TERMINAL_PROXY="" \
TERMINAL_ONCE="false" \
IF_DUFS_ON="true" \
IF_CURSOR_CLI_ON="true" \
IF_GEMINI_CLI_ON="true" \
IF_CODEX_CLI_ON="true" \
IF_CLAUDE_CLI_ON="true" \
IF_OPENCODE_CLI_ON="true" \
IF_GOLANG_ON="true" \
IF_NODEJS_ON="true" \
IF_JUPYTER_ON="true"
COPY app /app
RUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata vim software-properties-common curl && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
update-alternatives --remove-all editor && \
update-alternatives --remove-all vi && \
update-alternatives --install /usr/bin/editor editor /usr/bin/vim.basic 1 && \
update-alternatives --install /usr/bin/vi vi /usr/bin/vim.basic 1 && \
apt install -y tree sshpass telnet net-tools iproute2 iputils-ping jq ca-certificates wget htop net-tools vnstat screen tmux git build-essential \
supervisor \
xvfb \
openbox \
x11vnc \
websockify \
libpcre3-dev libssl-dev zlib1g-dev libgd-dev && \
curl -LsSf https://astral.sh/uv/install.sh | sh && \
curl -SsL https://install.xiechengqi.top/install/Agent/agent -o /usr/local/bin/agent && chmod +x /usr/local/bin/agent && \
mkdir -p /app/logs && \
rm -rf /var/cache/apt/* /tmp/*
# gotty
EXPOSE 2222
# dufs
EXPOSE 5000
# novnc
EXPOSE 7700
# jupyter
EXPOSE 8000
WORKDIR /app
# CMD ["sleep", "infinity"]
CMD ["supervisord", "-l", "/app/logs/supervisord.log", "-c", "/app/supervisor/supervisord.conf"]