Skip to content

Instantly share code, notes, and snippets.

@dev117uday
Created May 3, 2021 08:38
Show Gist options
  • Save dev117uday/994448a4dbdfa672ae1d71963f298575 to your computer and use it in GitHub Desktop.
Save dev117uday/994448a4dbdfa672ae1d71963f298575 to your computer and use it in GitHub Desktop.
Dockerfile for deploying vue.js on VM
FROM node:15.12.0-alpine3.10 as build-stage
WORKDIR /app
COPY . ./
RUN yarn install && yarn run build
FROM nginx as production-stage
RUN mkdir /app
COPY - from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment