0
|
1 FROM gliderlabs/alpine:3.2
|
|
2 MAINTAINER Dirk Olmes <dirk.olmes@codedo.de>
|
|
3
|
|
4 RUN apk add --update lighttpd wget && \
|
|
5 rm -rf /var/cache/apk/* && \
|
|
6 #
|
|
7 # enable directory listings
|
|
8 #
|
|
9 echo "dir-listing.activate = \"enable\"" >> /etc/lighttpd/lighttpd.conf && \
|
|
10 #
|
|
11 # populate the docroot
|
|
12 #
|
|
13 cd /var/www/localhost/htdocs && \
|
|
14 mkdir -p alpine/v3.2/main/x86_64 && \
|
|
15 cd alpine/v3.2/main/x86_64 && \
|
|
16 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz && \
|
|
17 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/ca-certificates-20141019-r2.apk && \
|
|
18 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/curl-7.42.1-r0.apk && \
|
|
19 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/expat-2.1.0-r1.apk && \
|
|
20 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/gdbm-1.11-r0.apk && \
|
|
21 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/libbz2-1.0.6-r3.apk && \
|
|
22 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/libffi-3.2.1-r0.apk && \
|
|
23 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/libgcc-4.9.2-r5.apk && \
|
|
24 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/libssh2-1.5.0-r0.apk && \
|
|
25 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/lua5.2-5.2.4-r0.apk && \
|
|
26 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/lua5.2-libs-5.2.4-r0.apk && \
|
|
27 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/lua5.2-posix-33.3.1-r2.apk && \
|
|
28 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/ncurses-libs-5.9-r3.apk && \
|
|
29 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/ncurses-terminfo-base-5.9-r3.apk && \
|
|
30 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/ncurses-widec-libs-5.9-r3.apk && \
|
|
31 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/openssl-1.0.2d-r0.apk && \
|
|
32 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/py-meld3-1.0.2-r0.apk && \
|
|
33 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/py-setuptools-1.1.7-r0.apk && \
|
|
34 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/python-2.7.10-r1.apk && \
|
|
35 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/readline-6.3.008-r0.apk && \
|
|
36 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/run-parts-4.4-r0.apk && \
|
|
37 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/sqlite-libs-3.8.10.2-r0.apk && \
|
|
38 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/sudo-1.8.15-r0.apk && \
|
|
39 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/supervisor-3.1.3-r1.apk && \
|
|
40 wget http://dl-2.alpinelinux.org/alpine/v3.2/main/x86_64/tar-1.28-r0.apk && \
|
|
41 ls -la
|
|
42
|
|
43 EXPOSE 80
|
|
44 CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
|