Skip to content

Commit

Permalink
add Dockerfile and update maven build file final name
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Jan 30, 2024
1 parent 4fd63c0 commit e7d9c4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM adoptopenjdk/openjdk11:ubi
MAINTAINER Eiriksgata <[email protected]>

VOLUME /tmp/rulateday-api-server-java/

# Add the renamed service itself
ADD /target/rulateday-api-server-SNAPSHOT.jar app.jar

# Expose Port
EXPOSE 16467

ENV JAVA_OPTS=""
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar"]
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@
</dependencies>

<build>
<finalName>rulateday-api-server-SNAPSHOT.jar</finalName>
<resources>
<resource>
<directory>src/main/resources/env/${profiles.active}</directory>
Expand Down

0 comments on commit e7d9c4a

Please sign in to comment.