Skip to content

Commit d37cab6

Browse files
... update
1 parent 84aaf9a commit d37cab6

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
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 }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ output
4545

4646
```bash
4747
git clone https://github.com/RootShell-coder/codespaces-node-scan.git .
48+
cd docker
4849
docker build -t node-scan -f docker/Dockerfile .
4950
```

docker/Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
FROM node:current-alpine
2-
COPY docker/entrypoint /usr/sbin
2+
COPY entrypoint /usr/sbin
33
RUN 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;
118
USER node-scan:node-scan
129
WORKDIR /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 ./
1411
RUN npm update
1512
ENTRYPOINT [ "entrypoint" ]

0 commit comments

Comments
 (0)