Skip to content

Commit

Permalink
update entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-jain committed Mar 30, 2020
1 parent 58b6716 commit 7a32075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM mhart/alpine-node:12

RUN npm install @apidevtools/swagger-cli

COPY entrypoint.sh /entrypoint.sh
COPY entrypoint.sh /usr/local/bin/

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ echo "======================"
echo "= Linting OAS file ="
echo "======================"

node node_modules/@apidevtools/swagger-cli/bin/swagger-cli validate "$1"
node node_modules/@apidevtools/swagger-cli/bin/swagger-cli validate "$INPUT_FILE_PATH"

0 comments on commit 7a32075

Please sign in to comment.