user-access/Dockerfile

28 lines
523 B
Text
Raw Normal View History

2018-11-26 17:50:03 +01:00
FROM thallian/confd-env:latest
2016-10-13 13:52:14 +02:00
2018-06-07 13:45:46 +02:00
RUN apk add --no-cache \
2020-08-24 09:55:47 +02:00
openssl \
2018-06-07 13:45:46 +02:00
openssh-client \
2020-08-24 09:55:47 +02:00
zlib \
perl
2018-06-07 13:45:46 +02:00
2020-07-26 08:34:59 +00:00
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
2018-06-07 13:45:46 +02:00
proftpd \
proftpd-mod_sftp \
proftpd-utils
2017-09-06 10:46:01 +02:00
2017-09-06 11:00:17 +02:00
RUN addgroup -g 2222 access
2017-09-06 10:46:01 +02:00
RUN addgroup proftpd access
2016-10-13 13:52:14 +02:00
2017-09-06 10:46:01 +02:00
RUN rm /etc/proftpd/dhparams.pem
2017-09-06 11:08:35 +02:00
RUN mkdir /etc/proftpd/keys/ && mkdir /run/proftpd
RUN chown -R proftpd:proftpd /run/proftpd
2017-09-06 10:46:01 +02:00
ADD /rootfs /
WORKDIR /
2016-10-13 13:52:14 +02:00
2017-09-06 10:46:01 +02:00
VOLUME /etc/proftpd/keys /var/lib/ftp/data
2017-06-13 15:36:25 +02:00
EXPOSE 22