Skip to content

Commit

Permalink
use default nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Dec 21, 2024
1 parent 08feeb9 commit 2ecd1eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ ARG BUNDLE_WITHOUT
ENV BUNDLE_WITHOUT ${BUNDLE_WITHOUT}
RUN bundle install

RUN . $NVM_DIR/nvm.sh && yarn install

COPY package.json yarn.lock /app/
RUN . $NVM_DIR/nvm.sh && nvm use default && yarn install

# Copy the Rails application into place
COPY . /app
Expand Down
1 change: 1 addition & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e
git config --global --add safe.directory /app
source $NVM_DIR/nvm.sh
nvm use default
yarn install
bundle exec bin/rake assets:precompile
bundle exec bin/rake db:create
Expand Down

0 comments on commit 2ecd1eb

Please sign in to comment.