auto-sync: 2026-04-11 23:41:07

This commit is contained in:
cfdaily
2026-04-11 23:41:07 +08:00
parent 814409d2b2
commit c692ae7572
2 changed files with 5 additions and 5 deletions
+4 -5
View File
@@ -40,8 +40,8 @@ RUN apt-get update && apt-get install -y \
libxext6 \
libxrender-dev \
libgomp1 \
dropbear \
&& rm -rf /var/lib/apt/lists/*
openssh-server \
&& rm -rf /var/lib/apt/lists/* || true
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
@@ -62,10 +62,9 @@ RUN pip install --no-cache-dir -r requirements-extra.txt
# RUN curl -fsSL https://code-server.dev/install.sh | sh
RUN echo "code-server skipped - install manually after container startup if needed"
RUN useradd -m -u 1000 vnpy && echo "vnpy ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && mkdir -p /home/vnpy/.ssh && mkdir -p /etc/dropbear && chown -R vnpy:vnpy /home/vnpy /app /etc/dropbear && chmod 700 /home/vnpy/.ssh
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
# dropbear doesn't need sed configuration, we just set password
RUN echo "vnpy:sanguo123" | chpasswd
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config && echo "vnpy:sanguo123" | chpasswd
USER vnpy
+1
View File
@@ -113,5 +113,6 @@