-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from mitre-attack/fix/598-docker
Fix/598 docker
- Loading branch information
Showing
2 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,22 +6,13 @@ ENV NODE_OPTIONS=--openssl-legacy-provider | |
|
||
# install node packages - cache for faster future builds | ||
WORKDIR /src/nav-app | ||
COPY nav-app/package*.json nav-app/patch-webpack.js . | ||
# install packages and build | ||
RUN npm install --unsafe-perm --legacy-peer-deps | ||
|
||
# NOTE on legacy-peer-deps: | ||
# The --legacy-peer-deps flags is included to bypass the dependency peer resolution conflict that arises between Angular | ||
# and @angular-devkit/[email protected], the latter of which has peerDependency: karma: '~5.1.0'. However, | ||
# upgrading karma to 5.1.0 cascades into a litany of other dependency conflicts, which would ultimately require us to | ||
# upgrade from Angular v11 to v12. Therefore, legacy-peer-deps will be allowed until a major framework upgrade can occur | ||
COPY ./nav-app/package*.json ./ | ||
|
||
# give user permissions | ||
RUN chown -R node:node ./ | ||
# install packages and build | ||
RUN npm install | ||
|
||
# copy over needed files | ||
USER node | ||
COPY nav-app/ ./ | ||
COPY ./nav-app/ ./ | ||
|
||
WORKDIR /src | ||
COPY layers/*.md ./layers/ | ||
|