chore: backend docker setup
.dockerignore en .dockerfile van de backend ingesteld
This commit is contained in:
		
							parent
							
								
									3cd7496989
								
							
						
					
					
						commit
						662f0ac190
					
				
					 2 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								backend/.dockerignore
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								backend/.dockerignore
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | ||||||
|  | **/node_modules/ | ||||||
|  | **/dist | ||||||
|  | .git | ||||||
|  | npm-debug.log | ||||||
|  | .coverage | ||||||
|  | .coverage.* | ||||||
|  | .env | ||||||
							
								
								
									
										14
									
								
								backend/backend.dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								backend/backend.dockerfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | FROM node:22 | ||||||
|  | 
 | ||||||
|  | WORKDIR /app | ||||||
|  | 
 | ||||||
|  | COPY ./package*.json ./ | ||||||
|  | 
 | ||||||
|  | RUN npm install | ||||||
|  | 
 | ||||||
|  | COPY . . | ||||||
|  | 
 | ||||||
|  | EXPOSE 80 | ||||||
|  | EXPOSE 443 | ||||||
|  | 
 | ||||||
|  | CMD ["npm", "start"] | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst