diff --git a/Dockerfile b/Dockerfile index 6a3270f..5ae4bde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/entrypoint.sh b/entrypoint.sh index 2cef6fa..649c656 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 "$1" +node node_modules/@apidevtools/swagger-cli/bin/swagger-cli validate "$INPUT_FILE_PATH"