Skip to content

Instantly share code, notes, and snippets.

@deeja
Created May 6, 2020 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deeja/3083864adbd1929bb2bbf8a1fdc37f90 to your computer and use it in GitHub Desktop.
Save deeja/3083864adbd1929bb2bbf8a1fdc37f90 to your computer and use it in GitHub Desktop.
Dockerfile - Nuxt.js Generate - Nginx Serve
FROM node:alpine as builder
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn
COPY . ./
RUN yarn generate
FROM nginx
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment