зеркало из https://github.com/github/docs.git
21 строка
529 B
Docker
21 строка
529 B
Docker
FROM node:18.13.0-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 src /openapi-check/src
|
|
ADD --chown=node:node lib /openapi-check/lib
|
|
ADD --chown=node:node content /openapi-check/content
|
|
ADD --chown=node:node data /openapi-check/data
|
|
|
|
RUN npm ci -D
|
|
|
|
ENTRYPOINT ["node", "/openapi-check/src/rest/scripts/openapi-check.js"]
|