FROM node:18-alpine

WORKDIR /lk-results/

COPY . .

RUN npm install
RUN npm audit fix --force 
RUN npm run build
RUN npm install -g serve

CMD ["serve", "-s", "dist"]