Files: f20766fcd63c17fd9526329e92ea3e92f42b26ac / 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