From f5b4d8f6cc88d5bfaec6421a0588575f4f0b3a26 Mon Sep 17 00:00:00 2001 From: ShushawnS Date: Sat, 24 Feb 2024 15:41:05 -0500 Subject: [PATCH] Update with DockerFile with prisma --- backend/typescript/Dockerfile | 4 +++- backend/typescript/package.json | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/backend/typescript/Dockerfile b/backend/typescript/Dockerfile index 5172762..b01e21c 100644 --- a/backend/typescript/Dockerfile +++ b/backend/typescript/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14.15.5-slim +FROM node:18.18.2-slim WORKDIR /app @@ -13,5 +13,7 @@ RUN yarn install COPY . ./ +RUN npx prisma generate + EXPOSE 5000 ENTRYPOINT ["yarn", "dev"] diff --git a/backend/typescript/package.json b/backend/typescript/package.json index fbb1954..fc508c9 100644 --- a/backend/typescript/package.json +++ b/backend/typescript/package.json @@ -7,13 +7,13 @@ "test": "jest --runInBand --forceExit --detectOpenHandles", "dev": "nodemon -L", "lint": "eslint . --ext .ts,.js", - "fix": "eslint . --ext .ts,.js --fix", - "postinstall": "tsc" + "fix": "eslint . --ext .ts,.js --fix" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { + "@prisma/client": "4.15.0", "@types/graphql-upload": "^8.0.6", "@types/json2csv": "^5.0.3", "@types/multer": "^1.4.6", @@ -72,6 +72,7 @@ "mongodb-memory-server": "^6.9.6", "nodemon": "^2.0.7", "prettier": "^2.2.1", + "prisma": "^4.15.0", "ts-jest": "^27.0.3", "typescript": "^4.1.5" }, @@ -80,6 +81,6 @@ "graphql-upload": "^11.0.0" }, "engines": { - "node": "14.15.5" + "node": "18.18.2" } }