Skip to content

Commit

Permalink
convert yarn commands to npm commands in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Itay Komemy committed Dec 30, 2017
1 parent c5ccfea commit 2fab0de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ WORKDIR /app

# only copy package.json initially so that `RUN yarn` layer is recreated only
# if there are changes in package.json
ADD package.json yarn.lock /app/
ADD package.json package-lock.json /app/

# --pure-lockfile: Don’t generate a yarn.lock lockfile
RUN yarn --pure-lockfile
# --no-save: Don’t generate a package-lock.json lockfile
RUN npm install --no-save

# copy all file from current dir to /app in container
COPY . /app/
Expand All @@ -23,4 +23,4 @@ COPY . /app/
EXPOSE 4040

# cmd to start service
CMD [ "yarn", "start" ]
CMD [ "npm", "start" ]

0 comments on commit 2fab0de

Please sign in to comment.