martin/demo/frontend/Dockerfile

15 lines
251 B
Docker
Raw Normal View History

FROM node:alpine as builder
WORKDIR /usr/src/app
COPY package.json .
COPY yarn.lock .
RUN yarn install
2018-10-11 17:28:20 +03:00
COPY . .
RUN yarn run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html