2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-05 04:15:27 +01:00

vsftpd virtual user support

This commit is contained in:
kev
2016-02-03 02:07:27 +08:00
parent 76c49047f5
commit eefea6df8a
3 changed files with 33 additions and 8 deletions

View File

@@ -6,7 +6,21 @@ FROM alpine
MAINTAINER kev <noreply@datageek.info>
RUN set -xe \
&& apk add -U vsftpd \
&& apk add -U build-base \
curl \
linux-pam-dev \
tar \
vsftpd \
&& mkdir pam_pwdfile \
&& cd pam_pwdfile \
&& curl -sSL https://github.com/tiwe-de/libpam-pwdfile/archive/v1.0.tar.gz | tar xz --strip 1 \
&& make install \
&& cd .. \
&& rm -rf pam_pwdfile \
&& apk del build-base \
curl \
linux-pam-dev \
tar \
&& passwd -l root \
&& adduser -D virtual \
&& rm -rf /var/cache/apk/*