We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34fa15d commit 9adcdd6Copy full SHA for 9adcdd6
Dockerfile
@@ -1,10 +1,18 @@
1
-FROM node:alpine
+FROM node:alpine AS builder
2
WORKDIR /usr/src/openapi
3
4
COPY ["package.json", "package-lock.json", "./"]
5
RUN ["npm", "install"]
6
7
COPY . /usr/src/openapi
8
RUN npm run release
9
+
10
+FROM node:alpine
11
+WORKDIR /usr/src/openapi
12
+COPY ["package.json", "package-lock.json", "./"]
13
+RUN npm install --production
14
+COPY --from=builder /usr/src/openapi/dist/index.js /usr/src/openapi/dist/index.js
15
+COPY --from=builder /usr/src/openapi/bin/index.js /usr/src/openapi/bin/index.js
16
ENTRYPOINT [ "node", "/usr/src/openapi/bin/index.js" ]
17
CMD "--help"
18
0 commit comments