-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial docker config [no ci] (#14)
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
* | ||
!gradle | ||
!gradle.properties | ||
!gradlew | ||
!build.gradle.kts | ||
!settings.gradle.kts | ||
!src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM gradle:8.8.0-jdk17-alpine as build | ||
|
||
WORKDIR /app | ||
|
||
# All files which may not be copied must be specified in the .dockerignore | ||
# file. | ||
COPY . ./ | ||
|
||
RUN gradle build -x test | ||
|
||
FROM amazoncorretto:22.0.1-alpine3.19 | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the JAR file from the build stage | ||
COPY --from=build "/app/build/libs/technology.idlab.jvm-runner-[0-9\.]*-all.jar" runner.jar | ||
|
||
# Set the entry point to run the application | ||
ENTRYPOINT ["java", "-jar", "runner.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
jvm-runner: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: jvm-runner | ||
environment: | ||
- JAVA_OPTS=-Xmx512m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
kotlin.code.style=official | ||
org.gradle.parallel=true | ||
org.gradle.daemon=true | ||
org.gradle.configuration-cache=true | ||
org.gradle.caching=true | ||
org.gradle.jvmargs=-Xmx2048M |