chore: fix docker

This commit is contained in:
Florian Metz
2024-08-01 10:29:00 +02:00
parent 6dd3c5ffcb
commit 18dc9fd594
2 changed files with 5 additions and 3 deletions

View File

@@ -7,4 +7,5 @@ dist
node_modules
.env
Dockerfile
.dockerignore
.dockerignore
generated

View File

@@ -9,8 +9,9 @@ COPY . /app
RUN pnpm i --frozen-lockfile
RUN if ["$SERVICE" == "api" ]; then pnpm run -r codegen; fi
RUN pnpm run build
RUN if [ "$SERVICE" != "website" ]; then pnpm run -r codegen; fi
RUN if [ "$SERVICE" != "website" ]; then pnpm run build; fi
RUN if [ "$SERVICE" == "website" ]; then pnpm --filter @premid/website run build; fi
RUN if [ "$SERVICE" != "website" ]; then pnpm --filter @premid/${SERVICE} deploy --prod /prod/${SERVICE}; fi
FROM node:20-alpine AS prod