Skip to content

Commit

Permalink
feat!: update nodejs to lts (#115)
Browse files Browse the repository at this point in the history
* feat!: update nodejs to lts

* chore: as builder

* chore: fix

* chore: stuff

* chore: specify

* chore: bump and test

* chore: fix

* chore: dockerfile

* chore: docker

* chore: deps

* chore: add mysql client

* chore: push deps

* chore: debug

* chore: install

* chore: x

* chore: reorder

* chore: rename

* chore: package
  • Loading branch information
kleyow authored May 23, 2022
1 parent 622b0c6 commit 889e8e0
Show file tree
Hide file tree
Showing 8 changed files with 26,644 additions and 1,627 deletions.
675 changes: 394 additions & 281 deletions .circleci/config.yml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.15.0
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
FROM node:14.15-alpine as builder
FROM node:16.15.0-alpine as builder
USER root
WORKDIR /opt/auth-service

RUN apk add --no-cache -t build-dependencies git make gcc g++ python libtool autoconf automake \
WORKDIR /opt/app

RUN apk add --no-cache -t build-dependencies make gcc g++ python3 libtool libressl-dev openssl-dev autoconf automake \
&& cd $(npm root -g)/npm \
&& npm config set unsafe-perm true \
&& npm install -g node-gyp
&& npm install -g node-gyp

COPY package.json package-lock.json* /opt/app/

COPY package.json package-lock.json* ./
RUN npm ci

COPY ./ ./
COPY ./ /opt/app
RUN npm run build
RUN rm -rf src secrets test docs
RUN npm prune --production

FROM node:14.15-alpine
FROM node:16.15.0-alpine

WORKDIR /opt/auth-service
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: ml-user
RUN adduser -D ml-user
USER ml-user
COPY --chown=ml-user --from=builder /opt/auth-service .
# Create a non-root user: app-user
RUN adduser -D app-user
USER app-user
COPY --chown=app-user --from=builder /opt/app .

EXPOSE 4004
CMD ["npm", "run", "start"]
60 changes: 60 additions & 0 deletions audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,66 @@
"decision": "ignore",
"madeAt": 1648440908767,
"expiresAt": 1651032872926
},
"1070030|@mojaloop/central-services-shared>widdershins>markdown-it": {
"decision": "ignore",
"madeAt": 1653078627812,
"expiresAt": 1655670624547
},
"1070030|shins>markdown-it": {
"decision": "ignore",
"madeAt": 1653078627812,
"expiresAt": 1655670624547
},
"1068310|@mojaloop/central-services-shared>widdershins>markdown-it>yargs>yargs-parser": {
"decision": "ignore",
"madeAt": 1653078628789,
"expiresAt": 1655670624547
},
"1070273|ansi-regex": {
"decision": "ignore",
"madeAt": 1653078629642,
"expiresAt": 1655670624547
},
"1070345|convict": {
"decision": "ignore",
"madeAt": 1653078630595,
"expiresAt": 1655670624547
},
"1070256|ejs": {
"decision": "ignore",
"madeAt": 1653078631696,
"expiresAt": 1655670624547
},
"1067560|hapi-swagger>swagger-parser>z-schema>validator": {
"decision": "ignore",
"madeAt": 1653078633405,
"expiresAt": 1655670624547
},
"1068155|shins>markdown-it>sanitize-html": {
"decision": "ignore",
"madeAt": 1653078634432,
"expiresAt": 1655670624547
},
"1070260|shins>markdown-it>sanitize-html": {
"decision": "ignore",
"madeAt": 1653078635346,
"expiresAt": 1655670624547
},
"1067553|swagger2openapi>better-ajv-errors>jsonpointer": {
"decision": "ignore",
"madeAt": 1653078637015,
"expiresAt": 1655670624547
},
"1067946|swagger2openapi>better-ajv-errors>jsonpointer>oas-validator>ajv": {
"decision": "ignore",
"madeAt": 1653078638022,
"expiresAt": 1655670624547
},
"1069987|urijs": {
"decision": "ignore",
"madeAt": 1653078639410,
"expiresAt": 1655670624547
}
},
"rules": {},
Expand Down
Loading

0 comments on commit 889e8e0

Please sign in to comment.