Skip to content

Instantly share code, notes, and snippets.

@suchwerk
Created December 11, 2024 21:31
Show Gist options
  • Save suchwerk/e0bb8e9b597a8fb06cc627f0bc078578 to your computer and use it in GitHub Desktop.
Save suchwerk/e0bb8e9b597a8fb06cc627f0bc078578 to your computer and use it in GitHub Desktop.
Dockerfile for maven 3.9.9, eclipse-temurin-21 (jdk21), nodejs via nvm, yarn, quasar
ARG BASEIMAGE=maven:3.9.9-eclipse-temurin-21-jammy
FROM ${BASEIMAGE}
USER root
RUN apt update && \
apt install -y curl build-essential python3 && \
apt clean
ENV NVM_DIR=/usr/local/nvm
ENV NODE_VERSION=22.10.0
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
RUN . $NVM_DIR/nvm.sh && nvm install ${NODE_VERSION}
RUN . $NVM_DIR/nvm.sh && node -v && \
npm install -g yarn && \
yarn global add @quasar/cli
ENV PATH="$NVM_DIR/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN quasar -v
RUN yarn -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment