Skip to content

Commit

Permalink
install application dependencies during the image build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed May 30, 2018
1 parent cf8710b commit 237da38
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
language: node_js
node_js:
- "8"
install: yarn --cwd=dashboard
install: yarn install --cwd=dashboard --frozen-lockfile
script:
- yarn --cwd=dashboard run lint
- yarn --cwd=dashboard run test --maxWorkers=4 --coverage
Expand All @@ -61,7 +61,7 @@ jobs:
- <<: *cliBuild
env: BINARY=kubeapps-windows-amd64.exe
script: GOOS=windows GOARCH=amd64 make

# Image builds
- &imageBuild
stage: build
Expand All @@ -85,5 +85,4 @@ jobs:
- <<: *imageBuild
env: IMAGE=kubeapps/apprepository-controller
- <<: *imageBuild
install: yarn --cwd=dashboard
env: IMAGE=kubeapps/dashboard
1 change: 1 addition & 0 deletions dashboard/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
4 changes: 4 additions & 0 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM node:8.9 AS build
WORKDIR /app

COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile

COPY . /app
RUN yarn run build

Expand Down

0 comments on commit 237da38

Please sign in to comment.