File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 5151 uses : docker/build-push-action@v5
5252 with :
5353 platforms : linux/amd64,linux/arm64
54- context : .
54+ context : docker
5555 push : ${{ github.event_name != 'pull_request' }}
5656 tags : ${{ steps.meta.outputs.tags }}
5757 labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 4545
4646``` bash
4747git clone https://github.com/RootShell-coder/codespaces-node-scan.git .
48+ cd docker
4849docker build -t node-scan -f docker/Dockerfile .
4950```
Original file line number Diff line number Diff line change 11FROM node:current-alpine
2- COPY docker/ entrypoint /usr/sbin
2+ COPY entrypoint /usr/sbin
33RUN set -eux; \
4- apk add --update --no-cache \
5- bash \
6- grep; \
7- npm install -g npm@latest; \
8- addgroup -S node-scan; \
9- adduser -S node-scan -G node-scan -h /home/node-scan -s /bin/ash; \
10- chmod +x /usr/sbin/entrypoint;
4+ npm install -g npm@latest; \
5+ addgroup -S node-scan; \
6+ adduser -S node-scan -G node-scan -h /home/node-scan -s /bin/ash; \
7+ chmod +x /usr/sbin/entrypoint;
118USER node-scan:node-scan
129WORKDIR /home/node-scan
13- COPY --chown=node-scan:node-scan docker/ index.js docker/ package.json ./
10+ COPY --chown=node-scan:node-scan index.js package.json ./
1411RUN npm update
1512ENTRYPOINT [ "entrypoint" ]
You can’t perform that action at this time.
0 commit comments