1
0
forked from finn/tinyboard

fix container sftp

This commit is contained in:
2026-04-14 16:36:11 -07:00
parent 5f5d2fa760
commit 14079d889b
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,10 @@
FROM debian:bookworm-slim FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y autossh openssh-client && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y autossh openssh-client && rm -rf /var/lib/apt/lists/*
ARG UID=1000
RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config
RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
RG UID=1000
ARG GID=1000 ARG GID=1000
RUN groupadd -g ${GID} armbian && useradd -m -u ${UID} -g armbian armbian RUN groupadd -g ${GID} armbian && useradd -m -u ${UID} -g armbian armbian
USER armbian USER armbian

View File

@@ -17,7 +17,7 @@ services:
volumes: volumes:
- /home/armbian/.ssh/oilykey2026:/home/armbian/.ssh/oilykey2026:ro - /home/armbian/.ssh/oilykey2026:/home/armbian/.ssh/oilykey2026:ro
- /home/armbian/.ssh/known_hosts:/home/armbian/.ssh/known_hosts:ro - /home/armbian/.ssh/known_hosts:/home/armbian/.ssh/known_hosts:ro
- /home/armbian/share:/home/armbian/share - /home/armbian/share:/home/armbian/
syncthing: syncthing:
image: syncthing/syncthing image: syncthing/syncthing
container_name: spoke-syncthing container_name: spoke-syncthing