fix: dockerbuild

This commit is contained in:
2025-11-13 20:56:08 +01:00
parent 75773e26c0
commit d9ea7c060c
3 changed files with 3 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
FROM eclipse-temurin:25.0.1_8-jdk-ubi10-minimal@sha256:2f088232687048be4cebe42d16d818170772c3bd5d57a22d65ef85cb09c10f72 AS builder FROM eclipse-temurin:25.0.1_8-jdk-ubi10-minimal@sha256:2f088232687048be4cebe42d16d818170772c3bd5d57a22d65ef85cb09c10f72 AS builder
WORKDIR /dashboard/ WORKDIR /dashboard/
COPY . . COPY . .
RUN ./gradlew bootJar RUN ./gradlew build bootJar
FROM eclipse-temurin:25.0.1_8-jre-ubi10-minimal@sha256:861de197973049618f02bb190eafa78b9359b568f0570c0de6837211146e63f9 FROM eclipse-temurin:25.0.1_8-jre-ubi10-minimal@sha256:861de197973049618f02bb190eafa78b9359b568f0570c0de6837211146e63f9
WORKDIR /opt/app/ WORKDIR /opt/app/
@@ -10,4 +10,4 @@ ENV TZ=Europe/Berlin
COPY --from=builder /dashboard/build/libs/dashboard-0.0.1-SNAPSHOT.jar ./ 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"]

View File

@@ -6,7 +6,7 @@ plugins {
group = 'de.wundenbergs' group = 'de.wundenbergs'
version = '0.0.1-SNAPSHOT' version = '0.0.1-SNAPSHOT'
description = 'Simple Projektverwaltung' description = 'Simple Dashboard'
java { java {
toolchain { toolchain {
@@ -25,16 +25,11 @@ repositories {
} }
dependencies { 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-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web' 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' compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
// testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher' testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
developmentOnly("org.springframework.boot:spring-boot-devtools") developmentOnly("org.springframework.boot:spring-boot-devtools")
} }

View File

@@ -5,9 +5,7 @@ import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest @SpringBootTest
class ProjektverwaltungApplicationTests { class ProjektverwaltungApplicationTests {
@Test @Test
void shouldLoadContext() { void shouldLoadContext() {
} }
} }