Created
April 11, 2018 11:44
-
-
Save andrewmclagan/cf139b69f95dacad7d81e4439cd40c14 to your computer and use it in GitHub Desktop.
docker package manager installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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