Skip to content

Instantly share code, notes, and snippets.

@suchwerk
suchwerk / Dockerfile
Created December 11, 2024 21:31
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