Created
May 3, 2021 08:38
-
-
Save dev117uday/994448a4dbdfa672ae1d71963f298575 to your computer and use it in GitHub Desktop.
Dockerfile for deploying vue.js on VM
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: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