diff --git a/incubator/nodejs/image/Dockerfile-stack b/incubator/nodejs/image/Dockerfile-stack index 9ffe66bc9..d8a85aad8 100644 --- a/incubator/nodejs/image/Dockerfile-stack +++ b/incubator/nodejs/image/Dockerfile-stack @@ -2,7 +2,7 @@ FROM registry.access.redhat.com/ubi8/nodejs-12:1-27 LABEL vendor="Kabanero" \ name="kabanero/nodejs" \ - version="0.3.1" \ + version="0.3.3" \ summary="Image for Kabanero Nodejs development" \ description="This image contains the Kabanero development stack for the Nodejs collection" @@ -35,7 +35,11 @@ COPY ./LICENSE /licenses/ COPY ./project /project COPY ./config /config +RUN npm install npm@latest +RUN chown -R default:root "/opt/app-root/src/.npm" + RUN chown -R default:root /project + WORKDIR /project USER default RUN mkdir -p /project/user-app/node_modules diff --git a/incubator/nodejs/image/project/package.json b/incubator/nodejs/image/project/package.json index 8ef9f98db..999ee6694 100644 --- a/incubator/nodejs/image/project/package.json +++ b/incubator/nodejs/image/project/package.json @@ -1,6 +1,6 @@ { "name": "nodejs", - "version": "0.3.2", + "version": "0.3.3", "description": "Node.js Stack", "license": "Apache-2.0", "repository": { diff --git a/incubator/nodejs/stack.yaml b/incubator/nodejs/stack.yaml index bc55373dc..b92a80511 100644 --- a/incubator/nodejs/stack.yaml +++ b/incubator/nodejs/stack.yaml @@ -1,5 +1,5 @@ name: Node.js -version: 0.3.2 +version: 0.3.3 description: Runtime for Node.js applications license: Apache-2.0 language: nodejs @@ -8,3 +8,6 @@ maintainers: email: vieuxtech@gmail.com github-id: sam-github default-template: simple +requirements: + docker-version: ">= 17.09.0" + appsody-version: ">= 0.2.7" \ No newline at end of file