Skip to content

Commit ed2c743

Browse files
authored
Merge pull request #1194 from jembi/TB-84-update-packages
TB - 84 Fix vulnerable packages/dependencies
2 parents b73bc64 + c9839df commit ed2c743

25 files changed

+2346
-1071
lines changed

.dockerignore

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1+
.github
2+
.travis
3+
.nyc_output
4+
.vscode
5+
.git
6+
.gitignore
17
node_modules
28
lib/*
9+
performance
310
packaging
411
infrastructure
512
test
13+
.env.test
14+
.eslintrc.json
15+
.eslintignore
16+
.npmignore
17+
.nycrc.json
18+
.prettierrc.yaml
19+
.travis.yml

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
node_js:
3-
- "lts/erbium"
43
- "lts/fermium"
4+
- "lts/gallium"
55
- "node"
66
matrix:
77
fast_finish: true

Dockerfile

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
1-
FROM node:14.17-alpine
1+
FROM node:14.21.3-alpine as build
2+
3+
WORKDIR /build
4+
5+
COPY . .
6+
7+
RUN npm install && npm run build
8+
9+
FROM node:14.21.3-alpine
10+
11+
ENV NODE_ENV=production
212

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

717
WORKDIR /app
818

9-
COPY . .
19+
COPY --from=build ./build/lib ./lib
1020

11-
RUN npm install
21+
COPY . .
1222

13-
RUN npm run build
23+
RUN npm install --production
1424

1525
CMD ["node", "lib/server.js"]

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ See the [development road-map](http://openhim.org/docs/introduction/roadmap) for
1818

1919
## Requirements
2020

21-
Last 2 versions of NodeJS LTS are supported
21+
Currently supported versions of NodeJS LTS are
2222

2323
| NodeJS (LTS) | MongoDB |
2424
| ------------ | -------------------------- |
25-
| 10.x | >= 3.6 &#124;&#124; <= 4.2 |
26-
| 12.x | >= 3.6 &#124;&#124; <= 4.2 |
25+
| 14.2x.x | >= 3.6 &#124;&#124; <= 4.2 |
26+
| 15.x | >= 3.6 &#124;&#124; <= 4.2 |
27+
2728

2829
- [NodeJS Release Versions](https://github.com/nodejs/Release)
2930
- [MongoDB NodeJS Driver Versions](https://mongodb.github.io/node-mongodb-native/)

config/production.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"logger": {
3+
"level": "warn",
4+
"logToDB": true,
5+
"capDBLogs": false
6+
}
7+
}

0 commit comments

Comments
 (0)