Last active
March 17, 2019 10:51
-
-
Save arsley/4d87ca6390fe32ac7627f52c2f0c627b to your computer and use it in GitHub Desktop.
Yarn & Node installation example for Docker
This file contains hidden or 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 somewhere... | |
| RUN apt-get update -qq && \ | |
| apt-get install -y \ | |
| postgresql-client \ | |
| graphviz \ | |
| tzdata && cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \ | |
| curl -sL https://deb.nodesource.com/setup_11.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| 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 -qq && apt-get install -y yarn | |
| RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| # RUN something... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment