Skip to content

Instantly share code, notes, and snippets.

@andrewmclagan
Created April 11, 2018 11:44
Show Gist options
  • Save andrewmclagan/cf139b69f95dacad7d81e4439cd40c14 to your computer and use it in GitHub Desktop.
Save andrewmclagan/cf139b69f95dacad7d81e4439cd40c14 to your computer and use it in GitHub Desktop.
docker package manager installation
FROM node:8-alpine
# Add package manger file and lock file
COPY package.json yarn.lock /usr/src
# Install dependancies from lockfile and clean package manager cache
RUN yarn install --pure-lockfile && \
yarn cache clean
# Add your application source
COPY . /usr/src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment