Fix "make build" after "make clean-assets"

make clean-assets removes npm-shrinkwrap.json, which is needed when
building the node Dockerfile. This creates an empty version if it
doesn't exist.
This commit is contained in:
John Whitlock
2021-08-13 16:04:45 -05:00
parent c134f31170
commit d01c1842c7

View File

@@ -69,6 +69,10 @@ my.env:
.PHONY: build
build: my.env
@if [ ! -f docker/node/npm-shrinkwrap.json ]; \
then \
echo "{}" > docker/node/npm-shrinkwrap.json; \
fi
${DC} build ${DOCKER_BUILD_OPTS} \
--build-arg userid=${ICHNAEA_UID} \
--build-arg groupid=${ICHNAEA_GID} \