<filename>Dockerfile
FROM node:lts-alpine AS builder
WORKDIR /opt/app

COPY . .

RUN npm install --only=prod

RUN npm run build

FROM nginx:stable
WORKDIR /usr/share/nginx/html

COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --chown=1000:1000 --from=builder /opt/app/build .
