From e596a116bbd8da3547ff5578047918e04743f9be Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 15 Jul 2018 08:28:36 +0200 Subject: [PATCH] Add Dockerfile.ek --- Dockerfile.ek | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile.ek diff --git a/Dockerfile.ek b/Dockerfile.ek new file mode 100644 index 0000000..c4b94c9 --- /dev/null +++ b/Dockerfile.ek @@ -0,0 +1,13 @@ +# build stage +FROM golang:1.10.2-alpine3.7 AS build-env +RUN apk --no-cache add git +RUN go get github.com/pstuifzand/ekster/cmd/ek + +# final stage +FROM alpine +RUN apk --no-cache add ca-certificates +RUN ["mkdir", "-p", "/opt/micropub"] +WORKDIR /opt/micropub +EXPOSE 80 +COPY --from=build-env /go/bin/ek /app/ +ENTRYPOINT ["/app/ek"]