FROM node:18

WORKDIR /usr/src/app

COPY ./frontend .

RUN npm install
RUN npm run build

EXPOSE 3000 

CMD [ "node", ".output/server/index.mjs" ]