Created
December 1, 2017 14:25
-
-
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.
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 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