auto-sync: 2026-04-11 23:32:02

This commit is contained in:
cfdaily
2026-04-11 23:32:02 +08:00
parent 35253bbe9c
commit e03a803074
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -62,9 +62,10 @@ 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 && chown -R vnpy:vnpy /home/vnpy /app && chmod 700 /home/vnpy/.ssh
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 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
# dropbear doesn't need sed configuration, we just set password
RUN echo "vnpy:sanguo123" | chpasswd
USER vnpy
+1
View File
@@ -86,5 +86,6 @@