-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(build): refactor build config and fix other smaller issues
- Loading branch information
Boersteken, Philipp
committed
May 3, 2022
1 parent
490807e
commit 6b06c70
Showing
5 changed files
with
22 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
|
@@ -8,12 +8,12 @@ ENV FSXA_NAVIGATION_SERVICE=... | |
ENV FSXA_MODE=... | ||
ENV FSXA_TENANT_ID=... | ||
COPY package*.json ./ | ||
RUN npm ci | ||
RUN npm ci --no-optional | ||
COPY . . | ||
RUN npx nuxt build --config-file nuxt.config.ts --standalone \ | ||
&& rm -rf node_modules && \ | ||
NODE_ENV=production npm ci --production --silent \ | ||
&& NODE_ENV=production npm install [email protected] | ||
NODE_ENV=production npm ci --production --silent --no-optional \ | ||
&& NODE_ENV=production npm install --no-optional [email protected] | ||
|
||
|
||
FROM node:14.17.1-alpine3.13 AS runtime | ||
|
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
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ | |
}, | ||
"types": ["@types/node"] | ||
}, | ||
"exclude": ["**/node_modules"] | ||
"exclude": ["**/node_modules", "cypress/**"] | ||
} |