update server configuration

This commit is contained in:
Brad Rydzewski
2016-07-17 04:46:08 -07:00
parent 3f0a8b6348
commit 3d3c3bf18c
+9 -3
View File
@@ -1,5 +1,11 @@
# docker build --rm=true -t lgtm/docs .
# docker run -p 8080:80 lgtm/docs
# docker run --rm -p 8080:80 lgtm/docs
FROM fnichol/uhttpd
ADD public /www
FROM alpine:3.4
EXPOSE 80
RUN apk add --update lighttpd && rm -rf /var/cache/apk/*
ADD public /var/www
RUN echo -e "include \"mime-types.conf\"\nserver.username = \"lighttpd\"\nserver.groupname = \"lighttpd\"\nserver.document-root = \"/var/www\"\nserver.indexfiles = (\"index.html\")" > /etc/lighttpd/lighttpd.conf
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]