Skip to content

Instantly share code, notes, and snippets.

@nrempel
Created May 25, 2017 05:09
Show Gist options
  • Save nrempel/634f23ac124f2ac1b8b46686cd2df8f4 to your computer and use it in GitHub Desktop.
Save nrempel/634f23ac124f2ac1b8b46686cd2df8f4 to your computer and use it in GitHub Desktop.
# Inherit from node base image
FROM node
# This is an alternative to mounting our source code as a volume.
# ADD . /app
# Install Yarn repository
RUN curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# Install OS dependencies
RUN apt-get update
RUN apt-get install yarn
# Install Node dependencies
RUN yarn install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment