Skip to content

Commit

Permalink
Merge pull request #144 from mtlynch/use-entrypoint
Browse files Browse the repository at this point in the history
Using ENTRYPOINT to simplify docker run semantics
  • Loading branch information
wjdp authored Mar 16, 2020
2 parents 8e3e969 + c119663 commit 5f77419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
WORKDIR /bin
COPY --from=builder /app ./htmltest
WORKDIR /test
CMD [ "htmltest", "./"]
ENTRYPOINT ["htmltest"]
CMD ["./"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ You can also build from sources by cloning this repo and running `sh build.sh`,
Mount your directory with html files into the container and test them.

If you need more arguments to the test run it like this:
```docker run -v $(pwd):/test --rm wjdp/htmltest htmltest -l 3 -s```
```docker run -v $(pwd):/test --rm wjdp/htmltest -l 3 -s```

### Notes

Expand Down

0 comments on commit 5f77419

Please sign in to comment.