Skip to content

Commit

Permalink
Remove unnecessary entrypoint.sh +x permission, fix Windows build (#…
Browse files Browse the repository at this point in the history
…167)

Remove unnecessary permission, fix Windows build

Signed-off-by: Davis Goodin <[email protected]>
  • Loading branch information
dagood authored Mar 4, 2024
1 parent 7236f3f commit a24e193
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Always use LF for shell scripts. Building the Docker image in a Git clone on
# Windows with autocrlf enabled would otherwise make a faulty image: the
# entrypoint script would fail to run in the container. The CR at the end of
# "#!/bin/bash" causes Linux to be unable to start the script.
*.sh text eol=lf
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ COPY --from=rulesets /rulesets/default/generated /opt/rulesets
COPY --from=rulesets /windup-rulesets/rules/rules-reviewed/openrewrite /opt/openrewrite
COPY --from=static-report /usr/bin/js-bundle-generator /usr/local/bin
COPY --from=static-report /usr/local/static-report /usr/local/static-report
COPY entrypoint.sh /usr/bin/entrypoint.sh
COPY --chmod=755 entrypoint.sh /usr/bin/entrypoint.sh

ENTRYPOINT ["kantra"]
Empty file modified entrypoint.sh
100755 → 100644
Empty file.

0 comments on commit a24e193

Please sign in to comment.