add cors + adjusting dockerfile

This commit is contained in:
Emily
2024-09-28 13:37:10 +02:00
parent 0ba44a406d
commit 33b730e66b
10 changed files with 135 additions and 50 deletions

View File

@@ -3,6 +3,7 @@ FROM node:21-alpine as base
FROM base as build
RUN npm i -g pnpm
RUN npm i -g pm2
# COPY --link dashboard/package.json dashboard/pnpm-lock.yaml ./
# RUN npm install --production=false
@@ -15,14 +16,15 @@ COPY --link consumer ./consumer
COPY --link producer ./producer
COPY --link shared ./shared
WORKDIR /home/app/dashboard
WORKDIR /home/app/producer
RUN pnpm install
WORKDIR /home/app/consumer
RUN pnpm install
WORKDIR /home/app/producer
WORKDIR /home/app/dashboard
RUN pnpm install
RUN pnpm run dev
# CMD [ "node", "/home/app/.output/server/index.mjs" ]