| 1 |
#================== |
| 2 |
# Node dependencies |
| 3 |
|
| 4 |
# Install nvm |
| 5 |
RUN groupadd -g 999 appuser && useradd -r -u 999 -g appuser appuser |
| 6 |
RUN mkdir -p /home/appuser && chown appuser /home/appuser |
| 7 |
RUN chmod 777 /root |
| 8 |
USER appuser |
| 9 |
RUN touch ~/.profile |
| 10 |
RUN 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 |
| 12 |
RUN /bin/bash -l -c "nvm install 16 && npm config set cache /tmp/npm-cache" |
| 13 |
RUN /bin/bash -l -c "nvm alias default 16" |