Skip to content

Commit

Permalink
Ensures bower dependencies are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Oct 9, 2019
1 parent 2b54222 commit 12701b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,18 @@ ENV CHROME_PATH=/usr/lib/chromium/

USER node

COPY --chown=node:node package.json package-lock.json* ./
COPY --chown=node:node package.json package-lock.json* bower.json .bowerrc ./

# I had to add node-sass here otherwise
RUN npm i npm@latest -g && \
RUN echo "running as $(whoami)..." && \
npm i npm@latest -g && \
npm install -g bower node-sass && \
npm install --no-optional && \
npm cache clean --force


# these may come in handy while developing
RUN npm install -g grunt-cli && npm install -g karma-cli
RUN npm install -g grunt-cli karma-cli

COPY --chown=node:node . .

Expand Down

0 comments on commit 12701b5

Please sign in to comment.