Dockerfile 284 B
FROM node:13-alpine as build
RUN mkdir -p /home/node/ui-styleguide/node_modules
WORKDIR /home/node/ui-styleguide
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# ---
FROM nginx:alpine
COPY --from=build /home/node/ui-styleguide/public /usr/share/nginx/html/