Files: 546a29ac502f64ff85e2f6faae88604083593767 / Dockerfile
286 bytesRaw
1 | FROM mhart/alpine-node:10 as base |
2 | WORKDIR /usr/src |
3 | COPY package*.json /usr/src/ |
4 | RUN npm ci |
5 | COPY . . |
6 | RUN npm run build && npm install --production |
7 | |
8 | FROM mhart/alpine-node:base-10 |
9 | WORKDIR /usr/src |
10 | ENV NODE_ENV="production" |
11 | COPY --from=base /usr/src . |
12 | EXPOSE 3000 |
13 | CMD ["node", "server.js"] |
Built with git-ssb-web