Skip to content

Commit 8c900bb

Browse files
Merge pull request #472 from santoshshinde2012/dev
upgrade npm packages
2 parents 2d75256 + 4f38197 commit 8c900bb

18 files changed

+1356
-1085
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
NODE_ENV=local
2-
PORT=3146
3-
BASE_URL=http://localhost:3146
4-
2+
PORT=8080
53
APPLY_ENCRYPTION=false

.env.example

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
NODE_ENV=local
2-
PORT=3146
3-
BASE_URL=http://localhost:3146
4-
2+
PORT=8080
53
APPLY_ENCRYPTION=true;
64
SECRET_KEY=sTJQgn5E8d8jMY15PhARwDrW4my6bLwE

.env.local

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
NODE_ENV=local
2-
PORT=3146
3-
BASE_URL=http://localhost:3146
4-
2+
PORT=8080
53
APPLY_ENCRYPTION=true
64
SECRET_KEY=sTJQgn5E8d8jMY15PhARwDrW4my6bLwE

.env.stage

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NODE_ENV=staging
2+
PORT=3144
3+
APPLY_ENCRYPTION=true
4+
SECRET_KEY=sTJQgn5E8d8jMY15PhARwDrW4my6bLwE

.env.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
NODE_ENV=test
22
PORT=3144
3-
BASE_URL=http://localhost:3146
4-
53
APPLY_ENCRYPTION=true
64
SECRET_KEY=sTJQgn5E8d8jMY15PhARwDrW4my6bLwE

.github/workflows/node.js.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ jobs:
3030
node-version: ${{ matrix.node-version }}
3131
- name: Install package
3232
run: npm install
33-
- name: Linter
34-
run: npm run lint
35-
- name: Format
36-
run: npm run pretty
3733
- name: Build
3834
run: npm run build --if-present
3935
- name: Test

Dockerfile

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
FROM node:16.17.0-bullseye-slim
1+
FROM node:18
2+
3+
# Create a new user named "nodeuser"
4+
RUN useradd --user-group --create-home --system --skel /dev/null --shell /bin/false nodeuser
5+
6+
# Switch to the new user
7+
USER nodeuser
8+
29
ENV NODE_ENV production
3-
WORKDIR /usr/src/app
4-
COPY --chown=node:node package.json /usr/src/app
5-
COPY --chown=node:node .env /usr/src/app
6-
COPY --chown=node:node swagger.json /usr/src/app
7-
COPY --chown=node:node src/ /usr/src/app
8-
RUN npm ci --only=production
9-
USER node
10+
WORKDIR /home/nodeuser/app
11+
COPY package.json ./
12+
COPY tsconfig.json ./
13+
COPY swagger.json ./
14+
COPY .env ./
15+
COPY .env.prod ./
16+
COPY src/ ./src
17+
RUN npm install --ignore-scripts
18+
RUN npm run build:prod
1019
EXPOSE 8080
1120
CMD npm start

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To access the `applyEncryption` attribute from `Envionment` class to Response Ha
9393

9494
The swagger documentation is available at the following url `${host}/docs`:
9595

96-
[http://localhost:3146/docs](http://localhost:3146/docs)
96+
[http://localhost:8080/docs](http://localhost:8080/docs)
9797
## Default System Health Status API
9898

9999
- `${host}/api/status/system` - Return the system information in response

coverage/lcov.info

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,8 @@ DA:13,5
216216
DA:14,5
217217
DA:15,5
218218
DA:16,5
219-
DA:19,5
220-
LF:15
221-
LH:15
219+
LF:14
220+
LH:14
222221
BRDA:1,0,0,5
223222
BRDA:1,0,1,5
224223
BRDA:10,1,0,5

0 commit comments

Comments
 (0)