Skip to content

Commit 5ba3e27

Browse files
committed
fix: wip
1 parent 34fa15d commit 5ba3e27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
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+
COPY --from=builder /usr/src/openapi/bin/index.js /usr/src/openapi/bin/index.js
912
ENTRYPOINT [ "node", "/usr/src/openapi/bin/index.js" ]
1013
CMD "--help"

0 commit comments

Comments
 (0)