Skip to content

Commit

Permalink
fix: fix order of commands in dockerfile
Browse files Browse the repository at this point in the history
closes #123
  • Loading branch information
juancarlosfarah committed Jul 3, 2019
1 parent 93c360c commit e1176fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.run.lint
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN yarn install

# setup before linting
RUN yarn setup

# bundle app source
COPY . /usr/src/app

# setup before linting
RUN yarn setup

CMD ["yarn", "lint"]
6 changes: 3 additions & 3 deletions Dockerfile.run.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN yarn install

# setup before testing
RUN yarn setup

# bundle app source
COPY . /usr/src/app

# setup before testing
RUN yarn setup

EXPOSE 8080

CMD ["yarn", "start"]

0 comments on commit e1176fc

Please sign in to comment.