Skip to content

Commit

Permalink
update: use recommended way to handle yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanycyang committed Mar 30, 2018
1 parent 9314a06 commit 718e53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ MAINTAINER jeanycyang

RUN mkdir -p /var/www/app
WORKDIR /var/www/app
COPY ./package.json /var/www/app
COPY ./package.json ./yarn.lock /var/www/app/

# RUN apk --update --no-cache --virtual dev-dependencies add git python make g++
RUN yarn
RUN yarn --pure-lockfile

COPY . /var/www/app
RUN npm run build
Expand Down

0 comments on commit 718e53c

Please sign in to comment.