homepage/Dockerfile

8 lines
211 B
Docker

FROM node:lts-alpine AS build
WORKDIR /app
COPY package.json package-lock.json .
RUN npm install --production && \
npm run build
FROM nginx:alpine AS serve
COPY --from=build /app/dist /usr/share/nginx/html