Skip to content

Instantly share code, notes, and snippets.

@davepoon
Created July 17, 2017 13:01
Show Gist options
  • Save davepoon/0cc4145891c1b14149d8f3f37772a716 to your computer and use it in GitHub Desktop.
Save davepoon/0cc4145891c1b14149d8f3f37772a716 to your computer and use it in GitHub Desktop.
loopback, yarn, nodejs and nodemon Dockerfile
From node:8.1.4
# Yarn please
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
ENV PATH="/root/.yarn/bin:${PATH}"
# Installs these globally WITHIN the container, not our local machine
RUN yarn && yarn global add loopback-cli && yarn global add nodemon
# Any commands start from this directory IN the container
WORKDIR /usr/src/api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment