From 789a8a9919163a7d876c26fcf1a43e5117619936 Mon Sep 17 00:00:00 2001 From: vaibhav-jain Date: Tue, 31 Mar 2020 03:10:26 +0530 Subject: [PATCH] Update installation command --- Dockerfile | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2ae1045..28bd17a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/entrypoint.sh b/entrypoint.sh index c718e13..1f06e17 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"