Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split prisma schema into multiple files #169

Merged
merged 3 commits into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading