muaddib-scanner 2.2.19 → 2.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docker/Dockerfile CHANGED
@@ -1,19 +1,20 @@
1
- FROM node:20-alpine
2
-
3
- # Outils de monitoring
4
- RUN apk add --no-cache strace curl tcpdump coreutils findutils jq iptables
5
-
6
- # User non-root
7
- RUN adduser -D sandboxuser
8
-
9
- # Dossier de travail avec bonnes permissions
10
- WORKDIR /sandbox
11
- RUN chown sandboxuser:sandboxuser /sandbox
12
-
13
- # Script d'analyse (sed strips Windows CRLF line endings)
14
- COPY sandbox-runner.sh /sandbox/
15
- RUN sed -i 's/\r$//' /sandbox/sandbox-runner.sh && chmod +x /sandbox/sandbox-runner.sh
16
-
17
- USER sandboxuser
18
-
1
+ FROM node:20-alpine
2
+
3
+ # Outils de monitoring
4
+ RUN apk add --no-cache strace curl tcpdump coreutils findutils jq iptables
5
+
6
+ # Non-root user for npm install (privilege drop via su in sandbox-runner.sh)
7
+ RUN adduser -D sandboxuser
8
+
9
+ # Dossier de travail avec bonnes permissions
10
+ WORKDIR /sandbox
11
+ RUN chown sandboxuser:sandboxuser /sandbox
12
+
13
+ # Script d'analyse (sed strips Windows CRLF line endings)
14
+ COPY sandbox-runner.sh /sandbox/
15
+ RUN sed -i 's/\r$//' /sandbox/sandbox-runner.sh && chmod +x /sandbox/sandbox-runner.sh
16
+
17
+ # Entrypoint runs as root for iptables/tcpdump/dmesg access.
18
+ # npm install is dropped to sandboxuser via su in sandbox-runner.sh.
19
+ # --security-opt no-new-privileges is set by the Docker run args in sandbox.js.
19
20
  ENTRYPOINT ["/sandbox/sandbox-runner.sh"]