Skip to content

Commit 378acef

Browse files
Merge pull request #309 from Rakshitha-D/vulnerability_fix
#SBCOSS-409: Vulnerability fixes
2 parents 7752e0e + fb582fd commit 378acef

File tree

5 files changed

+10975
-8463
lines changed

5 files changed

+10975
-8463
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
FROM node:12.20.1
2-
MAINTAINER "Manojvv" "manojv@ilimi.in"
3-
USER root
1+
FROM node:22.15-slim
2+
RUN apt-get update && apt-get install -y git
3+
COPY .git /opt/content/.git
44
COPY src /opt/content/
55
WORKDIR /opt/content/
6-
RUN npm install --unsafe-perm
6+
RUN git config --global --add safe.directory /opt/content
7+
RUN git submodule update --init --recursive
8+
RUN npm install --unsafe-perm --production
79

8-
FROM node:12.20.1
9-
MAINTAINER "Manojvv" "manojv@ilimi.in"
10+
FROM node:22.15-slim
1011

1112
RUN useradd -m sunbird
1213
COPY --from=0 --chown=sunbird /opt/content /home/sunbird/mw/content

src/.eslintrc

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,29 @@
44
"globalEkstepProxyBaseUrl": true
55
},
66
"rules": {
7+
"no-console": "warn",
8+
"no-debugger": "warn",
9+
"no-undef": "warn",
10+
"one-var": "warn",
11+
"handle-callback-err": "warn",
12+
"no-unused-expressions": "warn",
13+
"no-unused-vars": "warn",
14+
"new-cap": "warn",
15+
"eqeqeq": "warn",
16+
"no-sequences": "warn",
17+
"no-return-assign": "warn",
18+
"no-fallthrough": "warn",
19+
"no-mixed-operators": "warn",
20+
"no-unsafe-finally": "warn",
21+
"no-unmodified-loop-condition": "warn",
22+
"no-useless-escape": "warn",
23+
"no-redeclare": "warn",
24+
"no-use-before-define": "warn",
25+
"no-duplicate-imports": "warn",
26+
"no-duplicate-keys": "warn",
27+
"object-curly-even-spacing": ["warn", "never"],
728
"indent": ["error", 2],
8-
"max-len": ["error", 120, 2, {"ignoreUrls": true, "ignoreComments": true}],
9-
"quotes": ["error", "single"]
29+
"quotes": ["error", "single"],
30+
"camelcase": "off"
1031
}
1132
}

src/gulpfile.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)