mirror of
https://github.com/go-gitea/lgtm-docs.git
synced 2026-07-01 20:04:04 -04:00
update server configuration
This commit is contained in:
+9
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user