- Added production environment variables to docker-compose.yml - Updated Dockerfile for API and web to use Turbo build commands - Modified turbo.json to include new environment variables - Updated API index.ts to use new environment configuration - Updated README.md with correct API port - Added start:api script to package.json - Improved deployment and configuration management
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			343 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			343 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM node:22-alpine AS base
 | |
| 
 | |
| # Rebuild the source code only when needed
 | |
| FROM base
 | |
| WORKDIR /app
 | |
| COPY . .
 | |
| # Install dependencies
 | |
| RUN npm install
 | |
| 
 | |
| # Generate Prisma client
 | |
| RUN cd apps/api && npm run prisma:generate
 | |
| 
 | |
| # Build the project
 | |
| RUN npx turbo run build --filter=api
 | |
| 
 | |
| EXPOSE 4000
 | |
| # Start the server
 | |
| ENTRYPOINT [ "npm", "run", "start:api" ]
 |