fix go.sum + add base dockerfile (without redis ; for now)

This commit is contained in:
Adrien Marquès 2019-05-01 17:25:57 +02:00
parent 1fb2a210a1
commit 41f197ef41
2 changed files with 15 additions and 1 deletions

14
Dockerfile Normal file
View File

@ -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"]

2
go.sum
View File

@ -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= 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 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=