Skip to content

Instantly share code, notes, and snippets.

@elliotthilaire
Created February 28, 2017 15:04
Show Gist options
  • Save elliotthilaire/637d85c073dbd2095ac8df46d811c70d to your computer and use it in GitHub Desktop.
Save elliotthilaire/637d85c073dbd2095ac8df46d811c70d to your computer and use it in GitHub Desktop.
`yarn install` with in alpine docker image with apk
COPY package.json /usr/src/app/
COPY yarn.lock /usr/src/app/
# TODO: replace custom repository when yarn is no longer in edge/community
RUN apk add yarn --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
yarn install && \
apk del yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment