Skip to content

Commit

Permalink
Merge pull request #169 from codeanker/refactor/split-prisma-schema
Browse files Browse the repository at this point in the history
split prisma schema into multiple files
  • Loading branch information
danielswiatek authored Sep 8, 2024
2 parents e23b8ac + 4b5d805 commit 4126969
Show file tree
Hide file tree
Showing 17 changed files with 565 additions and 499 deletions.
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:20-alpine3.17 AS workspace-base

ENV CI=true
ENV HUSKY=0

Expand All @@ -14,28 +15,28 @@ COPY vendor/ ./vendor/

COPY package*.json ./

RUN npm ci
COPY . ./
RUN npm ci
RUN npm run postinstall --workspace ./api

ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ARG commitHash
ENV COMMIT_HASH $commitHash
ENV COMMIT_HASH=$commitHash
ARG version
ENV VERSION $version
ENV VERSION=$version

FROM api-build-stage as api-production-stage
FROM api-build-stage AS api-production-stage

CMD [ "npm", "start", "-w", "./api"]

FROM workspace-base as frontend-build-stage
ARG tenant
ENV VITE_APP_COMMIT_HASH $commitHash
ENV VITE_APP_VERSION $version
FROM workspace-base AS frontend-build-stage

ENV VITE_APP_COMMIT_HASH=$commitHash
ENV VITE_APP_VERSION=$version
RUN npm run build --workspace ./frontend

FROM workspace-base as api-build-stage
FROM workspace-base AS api-build-stage

# todo packing
# RUN npm run build --workspace ./api
Expand Down
6 changes: 3 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@faker-js/faker": "^8.4.1",
"@koa/cors": "^5.0.0",
"@koa/router": "^12.0.1",
"@prisma/client": "^5.6.0",
"@prisma/extension-accelerate": "^0.6.3",
"@prisma/client": "^5.19.1",
"@prisma/extension-accelerate": "^1.1.0",
"@sendgrid/mail": "^8.1.0",
"@trpc/server": "^10.28.1",
"axios": "^1.7.7",
Expand Down Expand Up @@ -62,7 +62,7 @@
"@types/koa-router": "^7.4.8",
"@types/node": "^20.11.1",
"edge-runtime": "^2.5.8",
"prisma": "^5.6.0",
"prisma": "^5.19.1",
"tsx": "^4.2.0",
"typescript": "^5.3.2"
}
Expand Down
Loading

0 comments on commit 4126969

Please sign in to comment.