Skip to content

Commit

Permalink
Update installation command
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-jain committed Mar 30, 2020
1 parent bd9fbab commit 789a8a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mhart/alpine-node:12

RUN npm install @apidevtools/swagger-cli
RUN npm install -g @apidevtools/swagger-cli

COPY entrypoint.sh /usr/local/bin/

Expand Down
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 "$INPUT_FILE_PATH"
node swagger-cli validate "$INPUT_FILE_PATH"

0 comments on commit 789a8a9

Please sign in to comment.