File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COPY package*.json ./
1010# Install dependencies (including dev dependencies for build)
1111RUN npm ci
1212
13- # Copy prisma schema
13+ # Copy prisma schema and TypeScript files
1414COPY prisma ./prisma/
1515
1616# Generate Prisma client
@@ -20,7 +20,7 @@ RUN npx prisma generate
2020COPY tsconfig.json ./
2121COPY src ./src/
2222
23- # Build the TypeScript application
23+ # Build the TypeScript application (this will compile both src/ and prisma/)
2424RUN npm run build
2525
2626# Production stage
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ version: '3.8'
33services :
44 app :
55 image : cornellappdev/eatery-blue-dev:${IMAGE_TAG}
6- volumes :
7- - ./firebase-service-account.json:/app/firebase-service-account.json:ro
6+ configs :
7+ - source : firebase_service_account
8+ target : /app/firebase-service-account.json
89 env_file : .env
910 networks :
1011 - eatery-network
@@ -23,3 +24,7 @@ services:
2324networks :
2425 eatery-network :
2526 driver : overlay
27+
28+ configs :
29+ firebase_service_account :
30+ file : ./firebase-service.account.json
Original file line number Diff line number Diff line change 33 "version" : " 1.0.0" ,
44 "type" : " module" ,
55 "description" : " " ,
6- "main" : " dist/server.js" ,
6+ "main" : " dist/src/ server.js" ,
77 "scripts" : {
88 "build" : " tsc" ,
9- "start" : " NODE_ENV=production node dist/server.js" ,
10- "start:dev" : " NODE_ENV=development node dist/server.js" ,
9+ "start" : " NODE_ENV=production node dist/src/ server.js" ,
10+ "start:dev" : " NODE_ENV=development node dist/src/ server.js" ,
1111 "dev" : " NODE_ENV=development nodemon -x tsx src/server.ts" ,
1212 "lint" : " eslint '{src,test}/**/*.ts' --fix" ,
1313 "format" : " prettier --write '{src,test}/**/*.ts'" ,
Original file line number Diff line number Diff line change 44 "module" : " NodeNext" ,
55 "moduleResolution" : " NodeNext" ,
66 "lib" : [" es2020" ],
7+ "rootDir" : " ." ,
78 "outDir" : " ./dist" ,
89 "esModuleInterop" : true ,
910 "resolveJsonModule" : true ,
You can’t perform that action at this time.
0 commit comments