Skip to content

Commit

Permalink
Add python script in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
igsekor committed Jan 11, 2021
1 parent 2cd88de commit bedc29c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ RUN apt-get update \

RUN pip3 install pyspelling pyyaml

COPY extract-lang.py /extract-lang.py
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

WORKDIR /action
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi

echo "Starting..."
echo "Setup languages and spelling tool..."
apt-get install $(python extract-lang.py $SPELLCHECK_CONFIG_FILE)
apt-get install $(python /extract-lang.py $SPELLCHECK_CONFIG_FILE)

rm -rf /var/lib/apt/lists/*

Expand All @@ -28,4 +28,4 @@ test $EXITCODE -gt 1 && echo "Spelling check action failed, please check diagnos

test $EXITCODE -eq 1 && echo "Files in repository contain spelling errors";

exit $EXITCODE
exit $EXITCODE

0 comments on commit bedc29c

Please sign in to comment.