Skip to content

Commit

Permalink
docker: whitelist entrypoints
Browse files Browse the repository at this point in the history
- e.g. `pr` (fixes #715)
  • Loading branch information
casperdcl committed Sep 14, 2021
1 parent 4f7a5d9 commit 3f1878b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ ENV IN_DOCKER=1
# also works for GitLab CI/CD
# https://gitlab.com/gitlab-org/gitlab-runner/-/blob/4c42e96/shells/bash.go#L18-37
# https://gitlab.com/gitlab-org/gitlab-runner/-/blob/4c42e96/shells/bash.go#L288
ENTRYPOINT ["/bin/bash", "-c", "which -- \"$0\" &>/dev/null && exec \"$0\" \"$@\" || exec cml \"$0\" \"$@\""]
ENTRYPOINT ["/bin/bash", "-c", "echo \"$0\" | grep -qE '^(pr|publish|runner|send-(comment|github-check)|tensorboard-dev)$' && exec \"$0\" \"$@\" || exec cml \"$0\" \"$@\""]
CMD ["--help"]

0 comments on commit 3f1878b

Please sign in to comment.