Adding docker entry for backend
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