Skip to content

Instantly share code, notes, and snippets.

@ryansch
Last active February 15, 2023 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryansch/7a8ada8c3ae0d3f705a9e66882184948 to your computer and use it in GitHub Desktop.
Save ryansch/7a8ada8c3ae0d3f705a9e66882184948 to your computer and use it in GitHub Desktop.
Install nodejs in docker debian/ubuntu
FROM hexpm/elixir:some_version
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
# Install nodejs
RUN set -eux; \
\
apt-get update; \
apt-get install -y \
curl \
ca-certificates \
; \
\
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -; \
\
apt-get update; \
apt-get install -y \
build-essential \
git \
nodejs \
; \
apt-get clean; \
rm -f /var/lib/apt/lists/*_*
@ryansch
Copy link
Author

ryansch commented Feb 15, 2023

You may also need python3 for some node packages to build custom stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment