Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -56,11 +56,6 @@ RUN curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip && \
|
|
56 |
unzip rclone-current-linux-amd64.zip && cd rclone-*-linux-amd64 && cp rclone /usr/bin/ && \
|
57 |
chown root:root /usr/bin/rclone && chmod 755 /usr/bin/rclone
|
58 |
|
59 |
-
# 创建 /dev/fuse 设备节点
|
60 |
-
RUN mkdir -p /dev \
|
61 |
-
&& mknod -m 666 /dev/fuse c 10 229 \
|
62 |
-
&& chown root:root /dev/fuse
|
63 |
-
|
64 |
# 安装 Node.js 和 npm
|
65 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
|
66 |
apt-get install -y nodejs && \
|
@@ -113,6 +108,9 @@ VOLUME ["/dev/fuse"]
|
|
113 |
|
114 |
USER root
|
115 |
|
|
|
|
|
|
|
116 |
# 安装 oh-my-zsh
|
117 |
RUN yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
118 |
|
@@ -136,7 +134,8 @@ COPY start.sh /start.sh
|
|
136 |
RUN chmod +x /start.sh
|
137 |
|
138 |
# 将 ~/.local/bin 添加到 PATH
|
139 |
-
ENV PATH="/home/${USERNAME}/.local/bin:${PATH}"
|
|
|
140 |
|
141 |
# 启用连接令牌保护,启动 OpenVSCode Server
|
142 |
ENTRYPOINT ["/bin/sh", "-c", "/start.sh && exec $OPENVSCODE --host 0.0.0.0 --port 7860 --connection-token 'vscode'"]
|
|
|
56 |
unzip rclone-current-linux-amd64.zip && cd rclone-*-linux-amd64 && cp rclone /usr/bin/ && \
|
57 |
chown root:root /usr/bin/rclone && chmod 755 /usr/bin/rclone
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
# 安装 Node.js 和 npm
|
60 |
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && \
|
61 |
apt-get install -y nodejs && \
|
|
|
108 |
|
109 |
USER root
|
110 |
|
111 |
+
# 创建 /dev/fuse 设备节点
|
112 |
+
RUN mkdir -p /dev && mknod -m 666 /dev/fuse c 10 229 && chown root:root /dev/fuse
|
113 |
+
|
114 |
# 安装 oh-my-zsh
|
115 |
RUN yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
116 |
|
|
|
134 |
RUN chmod +x /start.sh
|
135 |
|
136 |
# 将 ~/.local/bin 添加到 PATH
|
137 |
+
ENV PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/home/${USERNAME}/.local/bin:${PATH}"
|
138 |
+
|
139 |
|
140 |
# 启用连接令牌保护,启动 OpenVSCode Server
|
141 |
ENTRYPOINT ["/bin/sh", "-c", "/start.sh && exec $OPENVSCODE --host 0.0.0.0 --port 7860 --connection-token 'vscode'"]
|