Skip to content

Updated to Java 17 as some maven dependencies do not work under Java … #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: docker-compose
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM maven:3.8-openjdk-11-slim as builder
FROM maven:3.9.6-eclipse-temurin-17 as builder
COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
RUN mvn -f /usr/src/app/pom.xml clean package

FROM ibmjava:11
FROM azul/zulu-openjdk-alpine:17-latest
COPY --from=builder /usr/src/app/target/app-exec.jar /usr/app/app-exec.jar
ENV HOSTNAME="Docker"
ENTRYPOINT ["java", "-jar", "/usr/app/app-exec.jar"]
ENTRYPOINT ["java", "-jar", "/usr/app/app-exec.jar"]
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ services:
psql:
image: postgres:12.0-alpine
container_name: psql
# The following lines might not work under macOS as postgres tries to chown the directory.
# Comment it out if needed
volumes:
- .psql_data:/var/lib/postgresql/data
environment:
Expand All @@ -37,4 +39,4 @@ services:
ports:
- "5432:5432"
networks:
- project-network
- project-network
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@
</build>


</project>
</project>