FROM node:16 WORKDIR /app COPY package*.json ./ RUN npm i COPY . . RUN npm run build WORKDIR /app/frontend RUN npm i RUN npm run build WORKDIR /app CMD [ "/bin/sh", "-c", "npm run ream && npm run start" ]