Skip to content

Instantly share code, notes, and snippets.

@n0nuser
Last active February 29, 2024 11:33
Show Gist options
  • Save n0nuser/62f1665206622b8dfa7d6aa95db4ed25 to your computer and use it in GitHub Desktop.
Save n0nuser/62f1665206622b8dfa7d6aa95db4ed25 to your computer and use it in GitHub Desktop.
Node 18 in a Dockerfile
# NodeJS Preparation
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
# Install runtime dependencies
RUN apt-get update && \
apt-get install -y nodejs npm && \
rm -rf /var/lib/apt/lists/*
# Install packages
RUN npm install @stoplight/spectral-cli @stoplight/spectral-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment