# Setup environment and install necessary packages
RUN apt-get update && apt-get install -y \
curl \
software-properties-common \
gnupg \
ca-certificates
# Add the NodeSource repository for the latest Node.js LTS version
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
# Install Node.js LTS
RUN apt-get update && apt-get install -y nodejs
# Install Snapcraft
RUN apt-get install -y snapcraft