Skip to content

Commit 7a32075

Browse files
committed
update entrypoint
1 parent 58b6716 commit 7a32075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ FROM mhart/alpine-node:12
22

33
RUN npm install @apidevtools/swagger-cli
44

5-
COPY entrypoint.sh /entrypoint.sh
5+
COPY entrypoint.sh /usr/local/bin/
66

7-
ENTRYPOINT ["/entrypoint.sh"]
7+
ENTRYPOINT ["entrypoint.sh"]

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ echo "======================"
44
echo "= Linting OAS file ="
55
echo "======================"
66

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

0 commit comments

Comments
 (0)