Skip to content

Commit c10acf4

Browse files
committed
fix(deps): migrate to Node v18.14.0 + remove Snyk deps
1 parent c6aefa8 commit c10acf4

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node: ['16']
14+
node: ['18']
1515
mongodb: ['5.0']
1616

1717
steps:
@@ -149,7 +149,7 @@ jobs:
149149

150150
strategy:
151151
matrix:
152-
node: ['16']
152+
node: ['18']
153153
mongodb: ['5.0']
154154

155155
steps:

Dockerfile

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
FROM node:16.18.1-alpine3.15@sha256:ecf74556cdeee48382e555a377ddb12d36161bd33349dc79290f733f763df711
1+
FROM node:18.14.0-alpine3.17
22
ARG appPort=3000
3-
# ARG microScannerToken
43

54
LABEL maintainer="Damien Laureaux <[email protected]>" \
65
org.label-schema.vendor="Timoa" \
@@ -20,17 +19,6 @@ RUN \
2019
mkdir -p /opt/app && \
2120
adduser -S app-user
2221

23-
# Aquasec MicroScanner support
24-
# Search vulnerabilities under the source container
25-
# Get an API token (free): https://microscanner.aquasec.com/signup
26-
# Project: https://github.com/aquasecurity/microscanner
27-
28-
# ADD https://get.aquasec.com/microscanner /
29-
# RUN chmod +x /microscanner && \
30-
# /microscanner ${microScannerToken} && \
31-
# echo "No vulnerabilities! " && \
32-
# date
33-
3422
WORKDIR /opt/app/
3523
COPY ./package.json ./
3624
COPY ./src ./src

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"test:coverage": "./node_modules/.bin/nyc npm test",
1313
"test:functional": "./node_modules/.bin/mocha --reporter spec ./test/functional",
1414
"test:all": "./node_modules/.bin/run-s test:functional test:coverage",
15-
"docker:status": "node src/healthcheck",
16-
"snyk-protect": "snyk-protect",
17-
"prepare": "npm run snyk-protect"
15+
"docker:status": "node src/healthcheck"
1816
},
1917
"repository": {
2018
"type": "git",
@@ -39,7 +37,6 @@
3937
"dependencies": {
4038
"@fastify/helmet": "8.1.0",
4139
"@hapi/boom": "9.1.4",
42-
"@snyk/protect": "1.1081.0",
4340
"fastify": "3.29.4",
4441
"fastify-healthcheck": "3.2.0",
4542
"@fastify/swagger": "6.1.1",
@@ -49,7 +46,7 @@
4946
"winston": "3.8.2"
5047
},
5148
"engines": {
52-
"node": ">=16.0",
49+
"node": ">=18.0",
5350
"npm": ">=8.6.0"
5451
},
5552
"os": [

0 commit comments

Comments
 (0)