Skip to content

Commit

Permalink
default running container to lint in CWD/workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 14, 2024
1 parent 78d7fae commit 71fc126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ WORKDIR /app
COPY . .

RUN npm i

# default to lint JS files in CWD
CMD /app/lint
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $DYNODIR/lint
## Using on the command line (with docker/podman)
```bash
# lint check all JS found in your CWD
docker run --rm -it --pull=always -v $(pwd):/code ghcr.io/internetarchive/dyno:main sh -c 'cd /code; /app/lint'
docker run --rm --pull=always -v $(pwd):/code --workdir=/code ghcr.io/internetarchive/dyno:main
```


Expand Down

0 comments on commit 71fc126

Please sign in to comment.