From 9747d23de4f23f71abcf040343a0e5fc14d67f3f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 14 Jun 2017 22:08:21 +0200 Subject: [PATCH] Add Dockerfile Signed-off-by: Knut Ahlers --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..87bc8d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM golang:alpine + +LABEL maintainer "Knut Ahlers " + +ADD . /go/src/github.com/Luzifer/vault-otp-ui +WORKDIR /go/src/github.com/Luzifer/vault-otp-ui + +RUN set -ex \ + && apk add --update git ca-certificates \ + && go install -ldflags "-X main.version=$(git describe --tags || git rev-parse --short HEAD || echo dev)" \ + && apk del --purge git + +EXPOSE 3000 + +ENTRYPOINT ["/go/bin/vault-otp-ui"] +CMD ["--"]