aigenai commited on
Commit
95d9fdd
·
verified ·
1 Parent(s): 361e429

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -13
Dockerfile CHANGED
@@ -38,8 +38,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
38
  zsh \
39
  zip \
40
  unzip \
41
- fuse3 \
42
- kmod \
43
  ffmpeg \
44
  imagemagick \
45
  && git lfs install \
@@ -100,17 +98,8 @@ RUN groupadd --gid ${USER_GID} ${USERNAME} \
100
  && chown -R ${USERNAME}:${USERNAME} ${OPENVSCODE_SERVER_ROOT} \
101
  && chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
102
 
103
- # FUSE configuration for Docker
104
- RUN echo "user_allow_other" >> /etc/fuse.conf
105
-
106
- # Make the container privileged for fuse to work
107
- VOLUME ["/dev/fuse"]
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
 
@@ -136,6 +125,5 @@ RUN chmod +x /start.sh
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'"]
 
38
  zsh \
39
  zip \
40
  unzip \
 
 
41
  ffmpeg \
42
  imagemagick \
43
  && git lfs install \
 
98
  && chown -R ${USERNAME}:${USERNAME} ${OPENVSCODE_SERVER_ROOT} \
99
  && chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
100
 
 
 
 
 
 
 
101
  USER root
102
 
 
 
 
103
  # 安装 oh-my-zsh
104
  RUN yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
105
 
 
125
  # 将 ~/.local/bin 添加到 PATH
126
  ENV PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/home/${USERNAME}/.local/bin:${PATH}"
127
 
 
128
  # 启用连接令牌保护,启动 OpenVSCode Server
129
+ ENTRYPOINT ["/bin/sh", "-c", "/start.sh && exec $OPENVSCODE --host 0.0.0.0 --port 7860 --connection-token 'vscode'"]