Created
May 6, 2020 15:44
-
-
Save deeja/3083864adbd1929bb2bbf8a1fdc37f90 to your computer and use it in GitHub Desktop.
Dockerfile - Nuxt.js Generate - Nginx Serve
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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