File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,13 @@ FROM registry.access.redhat.com/ubi8/nodejs-16:1 as web-builder
33WORKDIR /opt/app-root
44
55COPY --chown=default Makefile Makefile
6+ COPY --chown=default web/package.json web/package.json
7+ COPY --chown=default web/package-lock.json web/package-lock.json
8+ RUN NPM_INSTALL=ci make install-frontend
9+
610COPY --chown=default web web
711COPY mocks mocks
8-
9- RUN NPM_INSTALL=ci make build-frontend
12+ RUN make fmt-frontend just-build-frontend
1013
1114FROM registry.access.redhat.com/ubi8/go-toolset:1.17 as go-builder
1215
Original file line number Diff line number Diff line change @@ -89,11 +89,14 @@ build-backend: fmt-backend
8989 @echo " ### Building backend"
9090 go build ${BUILD_FLAGS} -mod vendor -o plugin-backend cmd/plugin-backend.go
9191
92- .PHONY : build-frontend
93- build-frontend : install-frontend fmt-frontend
92+ .PHONY : just- build-frontend
93+ just- build-frontend :
9494 @echo " ### Building frontend"
9595 cd web && npm run build
9696
97+ .PHONY : build-frontend
98+ build-frontend : install-frontend fmt-frontend just-build-frontend
99+
97100.PHONY : build-frontend-standalone
98101build-frontend-standalone : install-frontend fmt-frontend
99102 @echo " ### Building frontend standalone"
You can’t perform that action at this time.
0 commit comments