Created
April 23, 2020 19:55
-
-
Save mamemomonga/305a34fd65e76e14cdcc0e63bb6db166 to your computer and use it in GitHub Desktop.
Dockerfileにnode.js組み込み(debian)
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
| RUN set -xe && \ | |
| curl -Lo /tmp/node.tar.xz https://nodejs.org/dist/v12.16.2/node-v12.16.2-linux-x64.tar.xz && \ | |
| curl -Lo /tmp/yarn.tar.gz https://yarnpkg.com/latest.tar.gz && \ | |
| tar Jx --strip-components 1 -f /tmp/node.tar.xz -C /usr/local && \ | |
| tar zx --strip-components 1 -f /tmp/yarn.tar.gz -C /usr/local && \ | |
| rm /tmp/node.tar.xz && \ | |
| rm /tmp/yarn.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment