diff --git a/Dockerfile b/Dockerfile index 746bb03..ca634ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM eclipse-temurin:25.0.1_8-jdk-ubi10-minimal@sha256:2f088232687048be4cebe42d16d818170772c3bd5d57a22d65ef85cb09c10f72 AS builder WORKDIR /dashboard/ COPY . . -RUN ./gradlew bootJar +RUN ./gradlew build bootJar FROM eclipse-temurin:25.0.1_8-jre-ubi10-minimal@sha256:861de197973049618f02bb190eafa78b9359b568f0570c0de6837211146e63f9 WORKDIR /opt/app/ @@ -10,4 +10,4 @@ ENV TZ=Europe/Berlin COPY --from=builder /dashboard/build/libs/dashboard-0.0.1-SNAPSHOT.jar ./ -ENTRYPOINT exec java ${JAVA_OPTS} --jar dashboard-0.0.1-SNAPSHOT.jar +ENTRYPOINT ["java", "-jar", "dashboard-0.0.1-SNAPSHOT.jar"] diff --git a/build.gradle b/build.gradle index 98f5fdd..a4e8d2e 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { group = 'de.wundenbergs' version = '0.0.1-SNAPSHOT' -description = 'Simple Projektverwaltung' +description = 'Simple Dashboard' java { toolchain { @@ -25,16 +25,11 @@ repositories { } dependencies { - implementation 'org.springframework.boot:spring-boot-starter-actuator' - // implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' - implementation 'io.github.wimdeblauwe:htmx-spring-boot-thymeleaf:4.0.1' - // implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6' compileOnly 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok' testImplementation 'org.springframework.boot:spring-boot-starter-test' - // testImplementation 'org.springframework.security:spring-security-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' developmentOnly("org.springframework.boot:spring-boot-devtools") } diff --git a/src/test/java/de/wundenbergs/dashboard/ProjektverwaltungApplicationTests.java b/src/test/java/de/wundenbergs/dashboard/ProjektverwaltungApplicationTests.java index b872e28..33029dc 100644 --- a/src/test/java/de/wundenbergs/dashboard/ProjektverwaltungApplicationTests.java +++ b/src/test/java/de/wundenbergs/dashboard/ProjektverwaltungApplicationTests.java @@ -5,9 +5,7 @@ import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ProjektverwaltungApplicationTests { - @Test void shouldLoadContext() { } - }