Skip to content

Commit 789a8a9

Browse files
committed
Update installation command
1 parent bd9fbab commit 789a8a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

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

3-
RUN npm install @apidevtools/swagger-cli
3+
RUN npm install -g @apidevtools/swagger-cli
44

55
COPY entrypoint.sh /usr/local/bin/
66

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

0 commit comments

Comments
 (0)