Basic stuff, doesn't compile

This commit is contained in:
2019-05-16 15:57:08 +02:00
parent aff0d99842
commit 7e3dc49635
6 changed files with 128 additions and 301 deletions
+3 -7
View File
@@ -1,16 +1,12 @@
## 1. Build Server
# Use Go 1.10
FROM golang:1.11 AS build-server
# Use Go 1.12
FROM golang:1.12 AS build-server
# Load repository into docker
WORKDIR /go/src/git.aiterp.net/rpdata/api/
WORKDIR /project/
COPY . .
RUN rm -rf ./vendor
# Install build tools and dependencies
RUN go get -u github.com/golang/dep/cmd/dep
RUN go get -u github.com/vektah/gorunpkg
RUN dep ensure
RUN go generate ./...
# Build server and tools (CGO disabled to make them 100% static)