We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58b6716 commit 7a32075Copy full SHA for 7a32075
Dockerfile
@@ -2,6 +2,6 @@ FROM mhart/alpine-node:12
2
3
RUN npm install @apidevtools/swagger-cli
4
5
-COPY entrypoint.sh /entrypoint.sh
+COPY entrypoint.sh /usr/local/bin/
6
7
-ENTRYPOINT ["/entrypoint.sh"]
+ENTRYPOINT ["entrypoint.sh"]
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"
0 commit comments