initial commit
This commit is contained in:
commit
0d746bc19e
6 changed files with 73 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM thallian/confd-env:latest
|
||||
|
||||
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 /
|
||||
|
||||
RUN apk add --no-cache openssl openldap tar gcc make g++ openldap-dev
|
||||
|
||||
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
|
||||
RUN patch -p1 -i /musl_mempcpy.patch
|
||||
RUN make && make install
|
||||
|
||||
RUN rm -r /tmp/proftpd
|
||||
RUN rm /musl_mempcpy.patch
|
||||
WORKDIR /
|
||||
|
||||
RUN apk del tar gcc make g++ openldap-dev
|
||||
|
||||
EXPOSE 2121
|
Loading…
Add table
Add a link
Reference in a new issue