Skip to content

Instantly share code, notes, and snippets.

@CDRO
Created May 11, 2018 14:15
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 CDRO/4aede5bd16c79873b074b2a437e86556 to your computer and use it in GitHub Desktop.
Save CDRO/4aede5bd16c79873b074b2a437e86556 to your computer and use it in GitHub Desktop.
FROM alpine
RUN touch ~/.profile
RUN apk add --no-cache curl bash nodejs
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
RUN echo $HOME
ENV PATH="root/.yarn/bin:/root/.config/yarn/global/node_modules/.bin:${PATH}"
RUN echo $PATH
RUN yarn -v
@CDRO
Copy link
Author

CDRO commented May 11, 2018

A simple Dockerfile for yarn install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment