From 41f197ef41c78a1c03e1dc576580662cdd61d3d7 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 1 May 2019 17:25:57 +0200 Subject: [PATCH] fix go.sum + add base dockerfile (without redis ; for now) --- Dockerfile | 14 ++++++++++++++ go.sum | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..90de416 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:alpine as builder + +ENV GO111MODULE=on +RUN apk add git +ADD . /pkg +WORKDIR /pkg +RUN go get -d ./... +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o exec + +FROM scratch +COPY --from=builder /pkg/exec /main +COPY --from=builder /pkg/api.json /api.json +EXPOSE 4242/tcp +ENTRYPOINT ["/main"] \ No newline at end of file diff --git a/go.sum b/go.sum index e7e78c4..d47f4a6 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -git.xdrm.io/go/aicra v0.2.0 h1:JrX773PfTaI4jYkeihpdv0U1caLGSsAKpBh21W6W0Ik= +git.xdrm.io/go/aicra v0.2.0 h1:Q/vaQlKhq7PdTBl8Ps9qNdb2SWnEPaIwwB74ee3RAaw= git.xdrm.io/go/aicra v0.2.0/go.mod h1:ulAzCdKqUN5X4eWQSER70QXSYteSXtybAqupcUuYPdw= github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=