UNPKG

409 BPlain TextView Raw
1FROM node:alpine
2LABEL maintainer="mike.ralphson@gmail.com" description="OpenAPI 2.0/3.0 CodeGen"
3ENV NODE_ENV=production
4WORKDIR /app
5
6# install deps first (enables layer reuse)
7COPY package.json .
8RUN apk update && apk upgrade && \
9 apk add --no-cache bash git openssh
10RUN npm config set cache /tmp && npm i && rm -rf /tmp/*
11
12# now load the app source
13COPY . .
14EXPOSE 3000
15CMD [ "node", "cg", "--help" ]