Skip to content
Browse files

Optimize Dockerfile caching (#105)

  • Loading branch information...
eukaryote31 authored and vivekratnavel committed May 14, 2019
1 parent 9992a05 commit 1cfb8a90fec4a53486b50319174081099fa242a7
Showing with 4 additions and 1 deletion.
  1. +4 −1 Dockerfile
@@ -11,12 +11,15 @@ RUN chmod +x /tini
# Having "--" at the end will enable passing command line args to npm script
ENTRYPOINT ["/tini", "--", "npm", "run", "prod", "--"]

COPY . /usr/omniboard
COPY package.json yarn.lock /usr/omniboard/
RUN npm install

COPY web/package.json web/yarn.lock /usr/omniboard/web/
WORKDIR /usr/omniboard/web
RUN npm install

COPY . /usr/omniboard

WORKDIR /usr/omniboard
RUN npm run build

0 comments on commit 1cfb8a9

Please sign in to comment.
You can’t perform that action at this time.