2 files changed, 35 insertions(+), 0 deletions(-)

A => Dockerfile
A => start.sh
A => Dockerfile +26 -0
@@ 0,0 1,26 @@ 
+FROM quay.io/bashell/alpine-bash:latest
+
+MAINTAINER Chaiwat Suttipongsakul "cwt@bashell.com"
+
+RUN apk update \
+ && apk upgrade \
+ && apk add --no-cache \
+	lighttpd \
+	lighttpd-mod_auth \
+	lighttpd-mod_webdav \
+ && mkdir -p /var/lib/lighttpd/cache/compress \
+ && chown -R lighttpd:lighttpd /var/lib/lighttpd \
+ && ln -s /dev/fd/3 /var/log/lighttpd/access.log \
+ && ln -s /dev/stderr /var/log/lighttpd/error.log \
+ && rm -rf /var/cache/*/*
+
+COPY start.sh /start.sh
+
+VOLUME ["/etc/lighttpd", "/var/lib/lighttpd", "/var/www"]
+
+STOPSIGNAL SIGTERM
+
+EXPOSE 443/tcp 80/tcp
+
+CMD ["/start.sh"]
+

          
A => start.sh +9 -0
@@ 0,0 1,9 @@ 
+#!/bin/bash
+
+chown lighttpd:lighttpd /var/lib/lighttpd
+chown lighttpd:lighttpd /var/lib/lighttpd/cache
+chown lighttpd:lighttpd /var/lib/lighttpd/cache/compress
+
+exec 3>&1
+/usr/sbin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.conf
+