Skip to content

Instantly share code, notes, and snippets.

@marcinczenko
Created December 1, 2017 14:25
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 marcinczenko/23b2bf7d6b932f0c3f1a9cdc23535bf2 to your computer and use it in GitHub Desktop.
Save marcinczenko/23b2bf7d6b932f0c3f1a9cdc23535bf2 to your computer and use it in GitHub Desktop.
Dockerfile for Ubuntu based node.js 9.2.0 with npm, yarn and git.
FROM ubuntu:latest
RUN apt-get update; \
apt-get install -y curl; \
apt-get install -y apt-transport-https; \
(curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -); \
(echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list); \
apt-get update; \
(curl -sL https://deb.nodesource.com/setup_9.x | bash -); \
apt-get install -y nodejs; \
apt-get install -y npm; \
apt-get install -y yarn; \
apt-get install -y git;
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment