Skip to content

Commit

Permalink
Merge pull request #1194 from jembi/TB-84-update-packages
Browse files Browse the repository at this point in the history
TB - 84 Fix vulnerable packages/dependencies
  • Loading branch information
bradsawadye authored Jun 12, 2023
2 parents b73bc64 + c9839df commit ed2c743
Show file tree
Hide file tree
Showing 25 changed files with 2,346 additions and 1,071 deletions.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
.github
.travis
.nyc_output
.vscode
.git
.gitignore
node_modules
lib/*
performance
packaging
infrastructure
test
.env.test
.eslintrc.json
.eslintignore
.npmignore
.nycrc.json
.prettierrc.yaml
.travis.yml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- "lts/erbium"
- "lts/fermium"
- "lts/gallium"
- "node"
matrix:
fast_finish: true
Expand Down
18 changes: 14 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
FROM node:14.17-alpine
FROM node:14.21.3-alpine as build

WORKDIR /build

COPY . .

RUN npm install && npm run build

FROM node:14.21.3-alpine

ENV NODE_ENV=production

RUN apk upgrade --update-cache --available && \
apk add openssl && \
rm -rf /var/cache/apk/*

WORKDIR /app

COPY . .
COPY --from=build ./build/lib ./lib

RUN npm install
COPY . .

RUN npm run build
RUN npm install --production

CMD ["node", "lib/server.js"]
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ See the [development road-map](http://openhim.org/docs/introduction/roadmap) for

## Requirements

Last 2 versions of NodeJS LTS are supported
Currently supported versions of NodeJS LTS are

| NodeJS (LTS) | MongoDB |
| ------------ | -------------------------- |
| 10.x | >= 3.6 &#124;&#124; <= 4.2 |
| 12.x | >= 3.6 &#124;&#124; <= 4.2 |
| 14.2x.x | >= 3.6 &#124;&#124; <= 4.2 |
| 15.x | >= 3.6 &#124;&#124; <= 4.2 |


- [NodeJS Release Versions](https://github.com/nodejs/Release)
- [MongoDB NodeJS Driver Versions](https://mongodb.github.io/node-mongodb-native/)
Expand Down
7 changes: 7 additions & 0 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"logger": {
"level": "warn",
"logToDB": true,
"capDBLogs": false
}
}
Loading

0 comments on commit ed2c743

Please sign in to comment.