1
0
mirror of synced 2025-12-19 09:57:42 -05:00

Add an openapi-check ci check and dockerize it (#18652)

This commit is contained in:
Marc-Andre Giroux
2021-04-09 14:02:53 -04:00
committed by GitHub
parent 66dab1fb8d
commit 1635048d0f
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
FROM node:14-alpine
RUN apk add --no-cache git python make g++
WORKDIR /openapi-check
RUN chown node:node /openapi-check -R
USER node
COPY --chown=node:node package.json /openapi-check
COPY --chown=node:node package-lock.json /openapi-check
ADD --chown=node:node script /openapi-check/script
ADD --chown=node:node lib /openapi-check/lib
ADD --chown=node:node content /openapi-check/content
RUN npm ci -D
ENTRYPOINT ["node", "/openapi-check/script/rest/openapi-check.js"]