user-access/Dockerfile

28 lines
523 B
Docker

FROM thallian/confd-env:latest
RUN apk add --no-cache \
openssl \
openssh-client \
zlib \
perl
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
proftpd \
proftpd-mod_sftp \
proftpd-utils
RUN addgroup -g 2222 access
RUN addgroup proftpd access
RUN rm /etc/proftpd/dhparams.pem
RUN mkdir /etc/proftpd/keys/ && mkdir /run/proftpd
RUN chown -R proftpd:proftpd /run/proftpd
ADD /rootfs /
WORKDIR /
VOLUME /etc/proftpd/keys /var/lib/ftp/data
EXPOSE 22