Skip to content

Commit c206d88

Browse files
committed
feat; Docker support
1 parent 3725ca9 commit c206d88

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
npm-debug.log
3+
.git/

Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:alpine
2+
LABEL maintainer="[email protected]" description="OpenAPI 2.0/3.0 CodeGen"
3+
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

Comments
 (0)