Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Created April 23, 2020 19:55
Show Gist options
  • Select an option

  • Save mamemomonga/305a34fd65e76e14cdcc0e63bb6db166 to your computer and use it in GitHub Desktop.

Select an option

Save mamemomonga/305a34fd65e76e14cdcc0e63bb6db166 to your computer and use it in GitHub Desktop.
Dockerfileにnode.js組み込み(debian)
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