chore: update environment configuration and deployment scripts
- 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
This commit is contained in:
parent
9a2e69921e
commit
1e5a035d33
7 changed files with 28 additions and 17 deletions
|
@ -8,10 +8,11 @@ COPY . .
|
|||
RUN npm install
|
||||
|
||||
# Generate Prisma client
|
||||
RUN npm run prisma:generate
|
||||
RUN cd apps/api && npm run prisma:generate
|
||||
|
||||
# Build the project
|
||||
RUN npm run api:build
|
||||
RUN npx turbo run build --filter=api
|
||||
|
||||
EXPOSE 4000
|
||||
# Start the server
|
||||
ENTRYPOINT [ "npm", "run", "api:start" ]
|
||||
ENTRYPOINT [ "npm", "run", "start:api" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue