Skip to content

Instantly share code, notes, and snippets.

@IniZio
Created December 11, 2019 11:35
Show Gist options
  • Save IniZio/e59d7b0a34c2f319231bea32546c4571 to your computer and use it in GitHub Desktop.
Save IniZio/e59d7b0a34c2f319231bea32546c4571 to your computer and use it in GitHub Desktop.
FROM node:12 as builder
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.12-alpine
COPY --from=builder /usr/src/app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment