trying to fix OOM parallel build issue
This commit is contained in:
parent
e60771c992
commit
e34cca218d
|
@ -26,12 +26,13 @@ FROM golang:1.18 as backend-build
|
||||||
WORKDIR /go/src/github.com/fastenhealth/fastenhealth-onprem
|
WORKDIR /go/src/github.com/fastenhealth/fastenhealth-onprem
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go mod vendor \
|
RUN --mount=type=cache,target=/tmp/lock,sharing=locked \
|
||||||
|
go mod vendor \
|
||||||
&& go install github.com/golang/mock/mockgen@v1.6.0 \
|
&& go install github.com/golang/mock/mockgen@v1.6.0 \
|
||||||
&& go generate ./... \
|
&& go generate ./... \
|
||||||
&& go vet ./... \
|
&& go vet ./... \
|
||||||
&& go test ./...
|
&& go test ./... \
|
||||||
RUN CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
|
&& CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
|
||||||
|
|
||||||
# create folder structure
|
# create folder structure
|
||||||
RUN mkdir -p /opt/fasten/db \
|
RUN mkdir -p /opt/fasten/db \
|
||||||
|
|
Loading…
Reference in New Issue