Last active
February 15, 2023 17:03
-
-
Save ryansch/7a8ada8c3ae0d3f705a9e66882184948 to your computer and use it in GitHub Desktop.
Install nodejs in docker debian/ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*_* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may also need
python3
for some node packages to build custom stuff.