0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00

add arm64 sftp image

This commit is contained in:
ghostwritten 2023-09-18 19:47:02 +08:00
parent eacf693131
commit 7ff07eb74d
2 changed files with 2 additions and 21 deletions

View file

@ -1,10 +1,11 @@
FROM debian:bullseye FROM infinilabs/debian:bullseye-arm64-v8
MAINTAINER Adrian Dvergsdal [atmoz.net] MAINTAINER Adrian Dvergsdal [atmoz.net]
# Steps done in one RUN layer: # Steps done in one RUN layer:
# - Install packages # - Install packages
# - OpenSSH needs /var/run/sshd to run # - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys # - Remove generic host keys, entrypoint generates unique keys
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install openssh-server && \ apt-get -y install openssh-server && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \

View file

@ -1,20 +0,0 @@
FROM alpine:latest
MAINTAINER Adrian Dvergsdal [atmoz.net]
# Steps done in one RUN layer:
# - Install packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk add --no-cache bash shadow@community openssh-server-pam openssh-sftp-server && \
ln -s /usr/sbin/sshd.pam /usr/sbin/sshd && \
mkdir -p /var/run/sshd && \
rm -f /etc/ssh/ssh_host_*key*
COPY files/sshd_config /etc/ssh/sshd_config
COPY files/create-sftp-user /usr/local/bin/
COPY files/entrypoint /
EXPOSE 22
ENTRYPOINT ["/entrypoint"]