-
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.
feat!: upgrade node to lts, ci, image, packages, audit (#90)
* feat!: upgrade node, ci, image, packages, audit * chore(snapshot): 14.0.0-snapshot.0 * chore: fix ci * chore: audit * chore(snapshot): 14.0.0-snapshot.1 * chore: address comments * chore: ncu * chore: dep update
- Loading branch information
Showing
10 changed files
with
22,717 additions
and
8,040 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Add a TODO comment indicating the reason for each rejected dependency upgrade added to this list, and what should be done to resolve it (i.e. handle it through a story, etc). | ||
reject: [ | ||
# TODO: v6+ (ref: https://github.com/sindresorhus/get-port/releases/tag/v6.0.0) is an ESM library and thus not compatible with CommonJS. Future story needed to resolve. | ||
"get-port" | ||
] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16.15.0 |
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,19 +1,32 @@ | ||
FROM node:12.16.0-alpine | ||
FROM node:16.15.0-alpine as builder | ||
USER root | ||
|
||
WORKDIR /opt/transaction-requests-service | ||
WORKDIR /opt/app/ | ||
|
||
RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake \ | ||
RUN apk add --no-cache -t build-dependencies git make gcc g++ python3 libtool autoconf automake \ | ||
&& cd $(npm root -g)/npm \ | ||
&& npm config set unsafe-perm true \ | ||
&& npm install -g node-gyp | ||
|
||
COPY package.json package-lock.json* /opt/transaction-requests-service/ | ||
RUN npm install --production | ||
COPY package.json package-lock.json* /opt/app/ | ||
RUN npm ci | ||
|
||
RUN apk del build-dependencies | ||
COPY src /opt/app/src | ||
COPY config /opt/app/config | ||
|
||
COPY config /opt/transaction-requests-service/config | ||
COPY src /opt/transaction-requests-service/src | ||
FROM node:16.15.0-alpine | ||
WORKDIR /opt/app/ | ||
|
||
# Create empty log file & link stdout to the application log file | ||
RUN mkdir ./logs && touch ./logs/combined.log | ||
RUN ln -sf /dev/stdout ./logs/combined.log | ||
|
||
# Create a non-root user: app-user | ||
RUN adduser -D app-user | ||
USER app-user | ||
|
||
COPY --chown=app-user --from=builder /opt/app/ . | ||
RUN npm prune --production | ||
|
||
EXPOSE 4001 | ||
CMD ["npm", "run", "start"] |
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.