Adding docker entry for backend #34

Merged
tonitch merged 1 commits from backend-compose into master 2024-02-26 13:37:59 +01:00
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: