Adding docker entry for backend
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and test FrontEnd / Build (pull_request) Successful in 36s
				
			
		
			
				
	
				Build and test FrontEnd / Test (pull_request) Successful in 23s
				
			
		
			
				
	
				deploy to production / deploy-frontend (push) Successful in 24s
				
			
		
			
				
	
				Build and test FrontEnd / Build (push) Successful in 23s
				
			
		
			
				
	
				Build and test FrontEnd / Test (push) Successful in 24s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and test FrontEnd / Build (pull_request) Successful in 36s
				
			Build and test FrontEnd / Test (pull_request) Successful in 23s
				
			deploy to production / deploy-frontend (push) Successful in 24s
				
			Build and test FrontEnd / Build (push) Successful in 23s
				
			Build and test FrontEnd / Test (push) Successful in 24s
				
			This allow you to run `docker-compose up` in the backend directory to run the whole backend in a docker. by default the port is set to 4000
This commit is contained in:
		
							
								
								
									
										4
									
								
								backend/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								backend/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  | FROM eclipse-temurin:21-jdk-alpine | ||||||
|  | VOLUME /tmp | ||||||
|  | COPY build/libs/backend-0.0.1-SNAPSHOT.jar /app.jar | ||||||
|  | ENTRYPOINT ["java", "-jar", "/app.jar"] | ||||||
| @ -1,4 +1,8 @@ | |||||||
| services: | services: | ||||||
|  |   backend: | ||||||
|  |     build: . | ||||||
|  |     ports: | ||||||
|  |       - 4000:8080 | ||||||
|   postgres: |   postgres: | ||||||
|     image: 'postgres:latest' |     image: 'postgres:latest' | ||||||
|     environment: |     environment: | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user