Skip to content

Commit

Permalink
Use --legacy-peer-deps flag on npm install to fix ES lint dependency …
Browse files Browse the repository at this point in the history
…clash (#1177)

* Update ES lint

* Revert "Update ES lint"

This reverts commit 00d67a2.

* Use --legacy-peer-deps flag on npm install
  • Loading branch information
matthewelwell committed Jun 7, 2022
1 parent 207a8f5 commit d16b5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM node:16 AS build
WORKDIR /app
COPY . .

RUN cd frontend && npm install --quiet --production
RUN cd frontend && npm install --quiet --production --legacy-peer-deps
ENV ENV=prod
ENV STATIC_ASSET_CDN_URL=/static/
RUN cd frontend && npm run bundledjango
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /srv/bt

COPY --chown=node:node . .

RUN npm install --quiet --production
RUN npm install --quiet --production --legacy-peer-deps
ENV ENV=prod
RUN npm run bundle

Expand Down

0 comments on commit d16b5f0

Please sign in to comment.