make sure we can build docker images in parallel again (no mutex via volume mount caching)
This commit is contained in:
parent
12cfcaee41
commit
b85cb51b60
|
@ -16,8 +16,7 @@ COPY frontend/package.json frontend/yarn.lock ./
|
||||||
|
|
||||||
RUN yarn install --frozen-lockfile
|
RUN yarn install --frozen-lockfile
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
RUN --mount=type=cache,target=/tmp/lock,sharing=locked \
|
RUN yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist
|
||||||
yarn run build -- --configuration ${FASTEN_ENV} --output-path=../dist
|
|
||||||
|
|
||||||
#########################################################################################################
|
#########################################################################################################
|
||||||
# Backend Build
|
# Backend Build
|
||||||
|
@ -27,13 +26,12 @@ 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 --mount=type=cache,target=/tmp/lock,sharing=locked \
|
RUN go mod vendor \
|
||||||
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 ./... \
|
||||||
&& CGO_ENABLED=0 go build -o /go/bin/fasten ./backend/cmd/fasten/
|
RUN 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