frontend/Dockerfile

21 lines
263 B
Docker

FROM node:12-slim as build
# Set work dir
WORKDIR /app/
# Copy package files
COPY package.json ./
COPY yarn.lock ./
RUN yarn install
COPY . .
RUN yarn build
FROM nginx:alpine as production-stage
WORKDIR /usr/share/nginx/html
COPY --from=build /app/dist .