Files
Personal-Website/client/Dockerfile
T
Raymonzut abd5f30d11 Create Dockerfile for client in production
- Including default nginx.conf for Vue.js
2020-05-11 16:04:55 +02:00

12 lines
235 B
Docker

FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf