FROM ubuntu:latest # Set environment variables for Node.js installation ENV NODE_VERSION=21 # Update package lists RUN apt-get update && apt-get install -y curl # Add Node.js repository RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - # Install Node.js RUN apt-get install -y nodejs CMD npm install CMD npm start