-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (36 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM alpine:3.9
ENV LANG en_US.utf8
RUN apk add --update \
curl \
bash \
apache2-webdav \
apache2-ssl \
apache2-ctl \
ca-certificates \
vsftpd \
linux-pam \
&& \
curl -Ls -o /tmp/s6-overlay.tar.gz https://github.com/just-containers/s6-overlay/releases/download/v1.21.7.0/s6-overlay-amd64.tar.gz \
&& tar xfz /tmp/s6-overlay.tar.gz -C / \
&& rm -f /tmp/s6-overlay.tar.gz \
&& update-ca-certificates \
&& deluser xfs \
&& delgroup www-data \
&& apk add -U build-base \
linux-pam-dev \
tar \
&& 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 \
&& rm -rfv /var/cache/apk/*
ADD files.tar /
ENTRYPOINT ["/init"]
EXPOSE 80 443
EXPOSE 21 21100-21110