auto-sync: 2026-04-11 21:58:43
This commit is contained in:
+5
-1
@@ -56,7 +56,11 @@ RUN pip install --no-cache-dir -r requirements-base.txt
|
||||
COPY docker/requirements/requirements-extra.txt .
|
||||
RUN pip install --no-cache-dir -r requirements-extra.txt
|
||||
|
||||
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
# 直接下载 code-server 二进制版本,更稳定
|
||||
RUN curl -fSL https://github.com/coder/code-server/releases/download/v4.96.1/code-server-4.96.1-linux-arm64.tar.gz | tar xz -C /tmp && \
|
||||
mv /tmp/code-server-4.96.1-linux-arm64/bin/code-server /usr/local/bin/ && \
|
||||
mv /tmp/code-server-4.96.1-linux-arm64/lib/code-server /usr/local/lib/ && \
|
||||
rm -rf /tmp/code-server-*
|
||||
|
||||
RUN useradd -m -u 1000 vnpy && echo "vnpy ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && mkdir -p /home/vnpy/.ssh && chown -R vnpy:vnpy /home/vnpy /app && chmod 700 /home/vnpy/.ssh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user