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

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:
Debucquoy Anthony 2024-02-26 13:20:03 +01:00
parent 42d9231ef6
commit 6503af0096
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 8 additions and 0 deletions

4
backend/Dockerfile Normal file
View 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"]

View File

@ -1,4 +1,8 @@
services:
backend:
build: .
ports:
- 4000:8080
postgres:
image: 'postgres:latest'
environment: