feat: enhance Docker configuration and update environment variables

- Updated .dockerignore to include additional files and directories for better Docker build context management.
- Modified compose.yaml to add BASE_URL and change BUCKET_NAME to improve environment configuration.
- Refactored Dockerfile to implement a multi-stage build for optimized image size and performance.
- Updated package.json to include a new script for production Prisma generation.
- Adjusted tsconfig files to refine project structure and exclude unnecessary directories.
- Removed delta.mdx.txt file from OpenAI instructions to streamline the service.
- Updated package-lock.json and package.json to upgrade Prisma and related dependencies for improved functionality.
This commit is contained in:
2024-12-05 18:37:34 +07:00
parent ac2014079f
commit 2033d0ec26
12 changed files with 294 additions and 64 deletions

View File

@@ -13,6 +13,7 @@
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"prisma:generate": "npx prisma generate --schema=./epess-database/prisma/schema.prisma",
"prisma:generate:prod": "npx prisma generate",
"prisma:migrate": "npx prisma migrate dev --schema=./epess-database/prisma/schema.prisma",
"prisma:push": "npx prisma db push --schema=./epess-database/prisma/schema.prisma",
"prisma:reset": "npx prisma migrate reset --schema=./epess-database/prisma/schema.prisma",
@@ -61,7 +62,7 @@
"@pothos/plugin-simple-objects": "^4.1.0",
"@pothos/plugin-smart-subscriptions": "^4.1.0",
"@pothos/plugin-zod": "^4.1.0",
"@prisma/client": "^5.21.1",
"@prisma/client": "^6.0.1",
"@smatch-corp/nestjs-pothos": "^0.3.0",
"@smatch-corp/nestjs-pothos-apollo-driver": "^0.1.0",
"apollo-server-express": "^3.13.0",
@@ -122,7 +123,7 @@
"globals": "^15.10.0",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"prisma": "^5.21.1",
"prisma": "^6.0.1",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.1.0",
@@ -132,6 +133,9 @@
"typescript": "^5.6.3",
"ws": "^8.18.0"
},
"optionalDependencies": {
"@css-inline/css-inline-linux-x64-musl": "^0.14.3"
},
"jest": {
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": "src",