2023-02-21 20:57:05 +03:00
|
|
|
FROM node:18.14-alpine
|
2021-04-09 21:02:53 +03:00
|
|
|
|
|
|
|
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
|
2023-02-14 05:13:21 +03:00
|
|
|
ADD --chown=node:node src /openapi-check/src
|
2021-04-09 21:02:53 +03:00
|
|
|
ADD --chown=node:node lib /openapi-check/lib
|
|
|
|
ADD --chown=node:node content /openapi-check/content
|
2021-11-02 17:35:03 +03:00
|
|
|
ADD --chown=node:node data /openapi-check/data
|
2021-04-09 21:02:53 +03:00
|
|
|
|
|
|
|
RUN npm ci -D
|
|
|
|
|
2023-02-14 05:13:21 +03:00
|
|
|
ENTRYPOINT ["node", "/openapi-check/src/rest/scripts/openapi-check.js"]
|