mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
add arm64 sftp image
This commit is contained in:
parent
eacf693131
commit
7ff07eb74d
2 changed files with 2 additions and 21 deletions
|
@ -1,10 +1,11 @@
|
|||
FROM debian:bullseye
|
||||
FROM infinilabs/debian:bullseye-arm64-v8
|
||||
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 apt-get update && \
|
||||
apt-get -y install openssh-server && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
|
|
|
@ -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"]
|
Loading…
Reference in a new issue