FROM node:16

WORKDIR /usr/src/app

COPY config config
COPY favicon.ico favicon.ico
COPY index.html index.html
COPY package*.json ./
COPY src src
COPY scripts scripts

RUN npm ci -f
RUN npm run build

ENV PORT 80
EXPOSE ${PORT}

ENTRYPOINT ["node", "./scripts/server.js"]
