aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Dockerfile
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2017-11-26 16:44:32 -0500
committerLauris BH <lauris@nix.lv>2017-11-26 23:44:32 +0200
commitfb5c6b644460f94acb8976ad35165230b9d47fb2 (patch)
tree3811cb3807a9f666e77743cc0fc8bcea4276f421 /docs/Dockerfile
parentf148a4a1ed55c75d391930865185fb7bfbee03ba (diff)
downloadgitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.tar.gz
gitea-fb5c6b644460f94acb8976ad35165230b9d47fb2.zip
Import docs into main repository (#2874)
* import docs into main repository Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'docs/Dockerfile')
-rw-r--r--docs/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/Dockerfile b/docs/Dockerfile
new file mode 100644
index 0000000000..c69a9214e4
--- /dev/null
+++ b/docs/Dockerfile
@@ -0,0 +1,22 @@
+# build stage
+FROM golang:alpine AS build-env
+
+RUN apk add --no-cache git
+RUN go get -d -v github.com/mholt/caddy/caddy github.com/pedronasser/caddy-search github.com/simia-tech/caddy-locale
+WORKDIR /go/src/github.com/mholt/caddy/caddy
+
+RUN sed -i '/This is where other plugins get plugged in (imported)/a _ "github.com/pedronasser/caddy-search"' caddymain/run.go \
+ && sed -i '/This is where other plugins get plugged in (imported)/a _ "github.com/simia-tech/caddy-locale"' caddymain/run.go \
+ && go install -v . \
+ && /go/bin/caddy -version
+
+FROM alpine:edge
+EXPOSE 80
+
+RUN apk add --no-cache wget mailcap ca-certificates
+COPY --from=build-env /go/bin/caddy /usr/sbin/caddy
+
+COPY docker/caddy.conf /etc/caddy.conf
+COPY public /srv/www
+
+CMD ["/usr/sbin/caddy", "-conf", "/etc/caddy.conf"]