Skip to content

Commit 43dba2c

Browse files
Update
1 parent 65a43ef commit 43dba2c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
FROM node:current-alpine
2+
23
COPY entrypoint /usr/sbin
4+
35
RUN set -eux; \
46
npm install -g npm@latest; \
57
addgroup -S node-scan; \
68
adduser -S node-scan -G node-scan -h /home/node-scan -s /bin/ash; \
79
chmod +x /usr/sbin/entrypoint;
10+
811
USER node-scan:node-scan
12+
913
WORKDIR /home/node-scan
14+
1015
COPY --chown=node-scan:node-scan index.js package.json ./
16+
1117
RUN npm update
18+
1219
ENTRYPOINT [ "entrypoint" ]

0 commit comments

Comments
 (0)