Skip to content

Commit

Permalink
Merge pull request #15 from patagonaa/docker-build
Browse files Browse the repository at this point in the history
optimize docker build
  • Loading branch information
danesparza committed Oct 4, 2019
2 parents d7ba072 + c6b796c commit ba10814
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM node:latest as build
WORKDIR /app
COPY . /app
RUN yarn install && yarn build
COPY package.json yarn.lock ./
RUN yarn install
COPY . ./
RUN yarn build

FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
Expand Down

0 comments on commit ba10814

Please sign in to comment.