Also cleanup npm cache to minimize the image size
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
[xmake]
-version=1.0.2
+version=1.0.3
# https://github.wdf.sap.corp/pages/xmake-ci/User-Guide/Setting_up_a_Build/Release_Procedure/Release_Versions/
[buildplugin]
ARG MBT_VERSION=1.2.18
RUN set -ex \
- && npm install -g mbt@${MBT_VERSION} \
+ && npm install -g --unsafe-perm mbt@${MBT_VERSION} \
+ && npm cache clean -g --force \
# smoke test
&& mbt --version
PROJECT_NAME?=sap-e-mobility
-NAME:=mbt-docker
+NAME?=mbt-docker
SUBMODULES_INIT?=false
DOCKER_REGISTRY_USERNAME?=fraggle0
DOCKER_REGISTRY_PASSWORD?=
endif
$(NAME): $(submodules-init)
- docker-compose -p $(PROJECT_NAME) up -d
+ docker-compose -p $(PROJECT_NAME) up -d $(NAME)
$(NAME)-force: $(submodules-init)
- docker-compose -p $(PROJECT_NAME) up -d --build --force-recreate
+ docker-compose -p $(PROJECT_NAME) up -d --build --force-recreate $(NAME)
all: $(NAME)