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 3725ca9 commit c206d88Copy full SHA for c206d88
2 files changed
.dockerignore
@@ -0,0 +1,3 @@
1
+node_modules/
2
+npm-debug.log
3
+.git/
Dockerfile
@@ -0,0 +1,15 @@
+FROM node:alpine
+LABEL maintainer="mike.ralphson@gmail.com" description="OpenAPI 2.0/3.0 CodeGen"
+ENV NODE_ENV=production
4
+WORKDIR /app
5
+
6
+# install deps first (enables layer reuse)
7
+COPY package.json .
8
+RUN apk update && apk upgrade && \
9
+ apk add --no-cache bash git openssh
10
+RUN npm config set cache /tmp && npm i && rm -rf /tmp/*
11
12
+# now load the app source
13
+COPY . .
14
+EXPOSE 3000
15
+CMD [ "node", "cg", "--help" ]
0 commit comments