Skip to content

Instantly share code, notes, and snippets.

View simonme's full-sized avatar

Simon Mannes simonme

View GitHub Profile
@simonme
simonme / Dockerfile
Last active May 2, 2020 13:24
Node.js Best Practices Dockerfile (with build step). See this article for more info: https://menssen.tech/nodejs-docker-best-practices
### build stage
FROM node:12.16.1-alpine3.11 AS build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
### cmd stage
FROM node:12.16.1-alpine3.11