chore: update backend dockerfile
compiler config deftig gekopiëerd
This commit is contained in:
		
							parent
							
								
									f6859b6748
								
							
						
					
					
						commit
						38ec0c75ca
					
				
					 3 changed files with 11 additions and 2 deletions
				
			
		|  | @ -7,9 +7,12 @@ COPY ./backend/package*.json ./ | |||
| RUN npm install | ||||
| 
 | ||||
| COPY ./backend ./backend | ||||
| COPY ./tsconfig.json /app | ||||
| 
 | ||||
| WORKDIR /app/backend | ||||
| 
 | ||||
| RUN npm run build | ||||
| 
 | ||||
| EXPOSE 2002 | ||||
| 
 | ||||
| CMD ["npm", "start"] | ||||
| CMD ["npm", "run", "start"] | ||||
							
								
								
									
										6
									
								
								backend/.env.production
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								backend/.env.production
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| DWENGO_PORT=3000 | ||||
| DWENGO_DB_HOST=localhost | ||||
| DWENGO_DB_PORT=5431 | ||||
| DWENGO_DB_USERNAME=postgres | ||||
| DWENGO_DB_PASSWORD=postgres | ||||
| DWENGO_DB_UPDATE=true | ||||
|  | @ -7,7 +7,7 @@ | |||
|     "scripts": { | ||||
|         "build": "NODE_ENV=production tsc --project tsconfig.json", | ||||
|         "dev": "NODE_ENV=development tsx watch --env-file=.env.development.local src/app.ts", | ||||
|         "start": "NODE_ENV=production node --env-file=.env dist/app.js", | ||||
|         "start": "NODE_ENV=production node --env-file=.env.production dist/app.js", | ||||
|         "format": "prettier --write src/", | ||||
|         "format-check": "prettier --check src/", | ||||
|         "lint": "eslint . --fix", | ||||
|  |  | |||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst