Skip to content

Instantly share code, notes, and snippets.

@lmakarov
Created July 12, 2018 18:48

Revisions

  1. Leonid Makarov created this gist Jul 12, 2018.
    14 changes: 14 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ENV \
    NVM_VERSION=0.33.11 \
    NODE_VERSION=8.11.3 \
    YARN_VERSION=1.8.0
    # Don't use -x here - node/nvm print just too much stuff
    RUN set -e; \
    # NVM and a defaut Node.js version
    export PROFILE="$HOME/.profile"; \
    curl -fsSL https://raw.githubusercontent.com/creationix/nvm/v${NVM_VERSION}/install.sh | bash; \
    # Reload profile to load nvm (needed by Yarn installation below)
    . $HOME/.profile; \
    # Yarn
    export YARN_PROFILE="$HOME/.profile"; \
    curl -fsSL https://yarnpkg.com/install.sh | bash -s -- --version ${YARN_VERSION}