• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#==================
2# Node dependencies
3
4# Install nvm
5RUN groupadd -g 999 appuser && useradd -r -u 999 -g appuser appuser
6RUN mkdir -p /home/appuser && chown appuser /home/appuser
7RUN chmod 777 /root
8USER appuser
9RUN touch ~/.profile
10RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
11# Install all versions of node that we want to test
12RUN /bin/bash -l -c "nvm install 16 && npm config set cache /tmp/npm-cache"
13RUN /bin/bash -l -c "nvm alias default 16"
14
15# Include the git workaround also for the user "appuser" we just created.
16<%include file="./git_avoid_dubious_ownership_error.include"/>
17