This image is build for build pipelines to have pre-installed:
FROM maven:3-amazoncorretto-21-debian
# replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# update the repository sources list
# and install dependencies
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get -y autoclean
# nvm environment variables
ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 20.12.2
RUN mkdir /root/.nvm && curl --silent -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# install node and npm
RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
# add node and npm to path so the commands are available
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
Content type
Image
Digest
sha256:ad9f9c14e…
Size
347.5 MB
Last updated
over 2 years ago
docker pull rocketbaseio/maven-node:amzn21-node20