-
Notifications
You must be signed in to change notification settings - Fork 20
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 #343 from digital-sustainability/fixDeps
Fix deps, unlimit nofile, update npm & node Version
- Loading branch information
Showing
9 changed files
with
12,119 additions
and
21,585 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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
FROM node:20.6.0-alpine3.17 as backendBuild | ||
FROM node:20.12.2-alpine3.18 as backendBuild | ||
LABEL stage=build | ||
ENV NODE_ENV=PRODUCTION | ||
|
||
COPY oss-api/ ./ | ||
|
||
WORKDIR /oss-api | ||
|
||
RUN npm install -g [email protected] | ||
|
||
RUN npm install | ||
|
||
RUN npm run build | ||
|
||
FROM node:20.6.0-alpine3.17 as frontendBuild | ||
FROM node:20.12.2-alpine3.18 as frontendBuild | ||
LABEL stage=build | ||
ENV NODE_ENV=PRODUCTION | ||
|
||
|
@@ -20,11 +22,13 @@ RUN cd /frontend/ | |
|
||
WORKDIR /frontend/ | ||
|
||
RUN npm install -g [email protected] | ||
|
||
RUN npm install | ||
|
||
RUN npm run build:prod | ||
|
||
FROM node:20.6.0-alpine3.17 as prod | ||
FROM node:20.12.2-alpine3.18 as prod | ||
|
||
COPY --from=backendBuild dist dist | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.