Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parameterize node version #71

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions afj/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM ghcr.io/findy-network/findy-base:indy-1.16.ubuntu-18.04 AS indy-base

FROM ubuntu:18.04

ARG NODE_VERSION=v16.20.0

# install indy deps and files from base
RUN apt-get update && apt-get install -y libsodium23 libssl1.1 libzmq5 git zsh

Expand All @@ -14,10 +16,10 @@ RUN apt-get install -y curl python3 build-essential ca-certificates && \
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash && \
export NVM_DIR="$HOME/.nvm" && \
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && \
nvm install v16 && \
nvm install ${NODE_VERSION} && \
npm install yarn -g

ENV PATH $PATH:/root/.nvm/versions/node/v16.19.1/bin
ENV PATH $PATH:/root/.nvm/versions/node/${NODE_VERSION}/bin

RUN mkdir /mediator

Expand All @@ -28,4 +30,4 @@ COPY package.json /mediator/package.json

RUN yarn install

ENTRYPOINT [ "yarn", "run", "start" ]
ENTRYPOINT [ "yarn", "run", "start" ]