Skip to content

Instantly share code, notes, and snippets.

@bayzi
Created September 27, 2019 09:52
Show Gist options
  • Save bayzi/ea8424fad93adbdccc3483f7fb2db00b to your computer and use it in GitHub Desktop.
Save bayzi/ea8424fad93adbdccc3483f7fb2db00b to your computer and use it in GitHub Desktop.
FROM node:10.16.3-alpine as builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginxinc/nginx-unprivileged
COPY --from=builder /app/build /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment