Skip to content

Commit 9adcdd6

Browse files
committed
fix: wip
1 parent 34fa15d commit 9adcdd6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
FROM node:alpine
1+
FROM node:alpine AS builder
22
WORKDIR /usr/src/openapi
33

44
COPY ["package.json", "package-lock.json", "./"]
55
RUN ["npm", "install"]
66

77
COPY . /usr/src/openapi
88
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
916
ENTRYPOINT [ "node", "/usr/src/openapi/bin/index.js" ]
1017
CMD "--help"
18+

0 commit comments

Comments
 (0)