Skip to content

Commit

Permalink
docs(examples): add npm version build arg to supply-chain app container
Browse files Browse the repository at this point in the history
This will enable us to have an automated image publishing pipeline set up
later down the line as our automation capabilities increase.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Oct 4, 2021
1 parent 86d5dda commit 126450f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/supply-chain-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ WORKDIR ${APP}
SHELL ["/bin/bash", "--login", "-i", "-c"]
# Installing Node Version Manager (nvm)
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
ARG NPM_PKG_VERSION=latest
RUN source ~/.bashrc && \
nvm install 16.8.0 && \
npm install -g yarn && \
yarn add @hyperledger/cactus-example-supply-chain-backend@0.9.1-docs-1312.bcfd3c31.6+bcfd3c31 --ignore-engines --production
yarn add @hyperledger/cactus-example-supply-chain-backend@${NPM_PKG_VERSION} --ignore-engines --production

SHELL ["/bin/bash", "--login", "-c"]

Expand Down

0 comments on commit 126450f

Please sign in to comment.