diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..bcf424a --- /dev/null +++ b/backend/Dockerfile @@ -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"] diff --git a/backend/compose.yaml b/backend/compose.yaml index 7c8044f..80902c9 100644 --- a/backend/compose.yaml +++ b/backend/compose.yaml @@ -1,4 +1,8 @@ services: + backend: + build: . + ports: + - 4000:8080 postgres: image: 'postgres:latest' environment: