diff --git a/Dockerfile b/Dockerfile index 6355d22..6773539 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,5 @@ -#FROM alpine:latest as builder - -#ENV PROFTP_VERSION v1.3.6 - -#ADD /rootfs / - -#RUN apk add --no-cache libressl openssh-client tar gcc make g++ openldap-dev 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_sftp --disable-wtmp -#RUN patch -p1 -i /musl_mempcpy.patch -#RUN make && make install - FROM registry.gitlab.com/thallian/docker-confd-env:master -#COPY --from=builder /usr/local/sbin/proftpd /usr/sbin/proftpd -#COPY --from=builder /usr/local/lib/proftpd /usr/lib/proftpd - RUN apk add --no-cache libressl openssh-client openldap zlib RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing \ proftpd proftpd-mod_ldap proftpd-mod_sftp diff --git a/rootfs/etc/confd/templates/proftpd.conf.tmpl b/rootfs/etc/confd/templates/proftpd.conf.tmpl index 5700d50..8da80e5 100644 --- a/rootfs/etc/confd/templates/proftpd.conf.tmpl +++ b/rootfs/etc/confd/templates/proftpd.conf.tmpl @@ -37,7 +37,7 @@ LoadModule mod_sftp.c LDAPBindDN "{{getenv "LDAP_BIND_DN"}}" {{getenv "LDAP_BIND_PASSWORD"}} LDAPUsers {{getenv "LDAP_BASE"}} "{{getenv "LDAP_FILTER"}}" - LDAPDefaultUID 2222 + LDAPDefaultUID 101 LDAPDefaultGID 2222 LDAPForceDefaultUID on LDAPForceDefaultGID on