forked from finn/tinyboard
fix container sftp
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
FROM debian:bookworm-slim
|
||||
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
|
||||
RUN groupadd -g ${GID} armbian && useradd -m -u ${UID} -g armbian armbian
|
||||
USER armbian
|
||||
WORKDIR /home/armbian
|
||||
CMD ["autossh", "-M", "0", "-N"]
|
||||
CMD ["autossh", "-M", "0", "-N"]
|
||||
|
||||
Reference in New Issue
Block a user