user-access/Dockerfile

27 lines
638 B
Docker
Raw Normal View History

2016-11-01 15:06:42 +00:00
FROM quay.io/thallian/confd-env:latest
2016-10-13 11:52:14 +00:00
ENV PROFTP_VERSION v1.3.5b
RUN addgroup -g 2222 proftp
RUN adduser -h /var/lib/proftp -u 2222 -D -G proftp proftp
ADD /rootfs /
2016-10-13 22:24:51 +00:00
RUN apk add --no-cache openssl openldap tar gcc make g++ openldap-dev file
2016-10-13 11:52:14 +00:00
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
2016-10-14 05:14:16 +00:00
RUN ./configure --with-modules=mod_ldap:mod_tls
2016-10-13 11:52:14 +00:00
RUN patch -p1 -i /musl_mempcpy.patch
RUN make && make install
RUN rm -r /tmp/proftpd
RUN rm /musl_mempcpy.patch
WORKDIR /
2016-10-13 22:24:51 +00:00
RUN apk del tar gcc make g++ openldap-dev file
2016-10-13 11:52:14 +00:00
2016-10-13 12:04:19 +00:00
EXPOSE 21