This commit is contained in:
Sebastian Hugentobler 2017-06-13 15:36:25 +02:00
parent 23e6d54867
commit bd7346b842
6 changed files with 30 additions and 51 deletions

View file

@ -7,13 +7,13 @@ RUN adduser -h /var/lib/proftp -u 2222 -D -G proftp proftp
ADD /rootfs /
RUN apk add --no-cache libressl openldap tar gcc make g++ openldap-dev file
RUN apk add --no-cache libressl openssh-client openldap tar gcc make g++ openldap-dev zlib zlib-dev file
RUN mkdir /tmp/proftpd
RUN wget -qO- https://github.com/proftpd/proftpd/archive/$PROFTP_VERSION.tar.gz | tar -xz -C /tmp/proftpd --strip 1
WORKDIR /tmp/proftpd
RUN ./configure --with-modules=mod_ldap:mod_tls
RUN ./configure --with-modules=mod_ldap:mod_sftp
RUN patch -p1 -i /musl_mempcpy.patch
RUN make && make install
@ -21,6 +21,8 @@ RUN rm -r /tmp/proftpd
RUN rm /musl_mempcpy.patch
WORKDIR /
RUN apk del tar gcc make g++ openldap-dev file
RUN apk del tar gcc make g++ openldap-dev zlib-dev file
EXPOSE 21
VOLUME /var/lib/proftp/keys /var/lib/proftp/data
EXPOSE 22