Skip to content

Commit

Permalink
Symlink PHPCS, PHPCBF to /usr/local/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
ypcs committed Jun 18, 2024
1 parent cbdaa73 commit b83f878
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ COPY thirdparty/phpcsutils /usr/share/php/PHP/CodeSniffer/src/Standards/
COPY thirdparty/phpcsextra /usr/share/php/PHP/CodeSniffer/src/Standards/
COPY thirdparty/annotate-pull-request-from-checkstyle/cs2pr /usr/local/bin/

RUN chmod +x /usr/local/bin/cs2pr
RUN ln -s /usr/share/php/PHP/CodeSniffer/bin/phpcs /usr/local/bin/phpcs && \
ln -s /usr/share/php/PHP/CodeSniffer/bin/phpcbf /usr/local/bin/phpcbf && \
chmod +x /usr/local/bin/cs2pr

USER user

ENTRYPOINT ["/usr/bin/php", "/usr/share/php/PHP/CodeSniffer/bin/phpcs"]
ENTRYPOINT ["/usr/bin/php", "/usr/local/bin/phpcs"]

0 comments on commit b83f878

Please sign in to comment.