Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #306 from groeges/release-0.6
Browse files Browse the repository at this point in the history
Update npm during stack image creation
  • Loading branch information
kilnerm authored Mar 2, 2020
2 parents fde002c + dde98f5 commit d1e4c76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion incubator/nodejs/image/Dockerfile-stack
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion incubator/nodejs/image/project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodejs",
"version": "0.3.2",
"version": "0.3.3",
"description": "Node.js Stack",
"license": "Apache-2.0",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion incubator/nodejs/stack.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -8,3 +8,6 @@ maintainers:
email: [email protected]
github-id: sam-github
default-template: simple
requirements:
docker-version: ">= 17.09.0"
appsody-version: ">= 0.2.7"

0 comments on commit d1e4c76

Please sign in to comment.