homepage/Dockerfile

8 lines
193 B
Docker

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