Leonard Excoffier el
  • Joined on 2024-09-07

sftp_server (latest)

Published 2024-10-20 09:51:09 -04:00 by el

Installation

docker pull git.jisoonet.com/el/sftp_server:latest
sha256:c60a0712c589238251153e29b4b1936edf38ea1913ec417666c94cc9b12ca19d

Image Layers

ADD file:cd5794c523af0ce8992e120ccf6a5b30e9ed2655f7a3ea564a427f9023f864b6 in /
CMD ["bash"]
ENV SFTP_USER_PASSWORD=
RUN /bin/sh -c apt-get update && apt-get install -y openssh-server openssl && apt-get clean # buildkit
RUN /bin/sh -c mkdir -p /run/sshd # buildkit
RUN /bin/sh -c useradd -m sftp_user # buildkit
RUN /bin/sh -c mkdir -p /mnt/sftp_server && chown sftp_user:sftp_user /mnt/sftp_server && chmod 700 /mnt/sftp_server # buildkit
RUN /bin/sh -c echo "Match User sftp_user" >> /etc/ssh/sshd_config && echo " ForceCommand internal-sftp" >> /etc/ssh/sshd_config && echo " ChrootDirectory /mnt" >> /etc/ssh/sshd_config && echo " PermitTunnel no" >> /etc/ssh/sshd_config && echo " AllowAgentForwarding no" >> /etc/ssh/sshd_config && echo " AllowTcpForwarding no" >> /etc/ssh/sshd_config && echo " X11Forwarding no" >> /etc/ssh/sshd_config # buildkit
COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh # buildkit
VOLUME [/mnt/sftp_server]
EXPOSE map[22/tcp:{}]
CMD ["/usr/local/bin/entrypoint.sh"]
Details
Container
2024-10-20 09:51:09 -04:00
36
OCI / Docker
linux/amd64
57 MiB
Versions (1) View all
latest 2024-10-20