Skip to content

Commit

Permalink
trying to fix OOM parallel build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 10, 2023
1 parent e60771c commit e34cca2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ FROM golang:1.18 as backend-build
WORKDIR /go/src/github.com/fastenhealth/fastenhealth-onprem
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 generate ./... \
&& go vet ./... \
&& go test ./...
RUN CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
&& go test ./... \
&& CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/

# create folder structure
RUN mkdir -p /opt/fasten/db \
Expand Down

0 comments on commit e34cca2

Please # to comment.