From fcb7fb49c30457d977937d3c0ea4106c65904e31 Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Thu, 9 May 2024 11:53:08 +0200 Subject: [PATCH] remove old docker stuff --- Dockerfile | 34 --------------------------------- docker/default.application.yaml | 8 -------- 2 files changed, 42 deletions(-) delete mode 100644 Dockerfile delete mode 100644 docker/default.application.yaml diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 65bafb3..0000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -ARG JAVA_VERSION=17 -ARG JVM_FLAVOR=hotspot - -FROM openjdk:${JAVA_VERSION}-jdk-slim AS builder -WORKDIR /build - -COPY ./ ./ -RUN ./gradlew clean buildForDocker --no-daemon - - -ARG JAVA_VERSION -ARG JVM_FLAVOR - -FROM openjdk:${JAVA_VERSION}-slim -WORKDIR /app - -RUN groupadd --system bibliothek \ - && useradd --system bibliothek --gid bibliothek \ - && chown -R bibliothek:bibliothek /app -USER bibliothek:bibliothek - -VOLUME /data/storage -EXPOSE 8080 - -# We override default config location search path, -# so that a custom file with defaults can be used -# Normally would use environment variables, -# but they take precedence over config file -# https://docs.spring.io/spring-boot/docs/1.5.6.RELEASE/reference/html/boot-features-external-config.html -ENV SPRING_CONFIG_LOCATION="optional:classpath:/,optional:classpath:/config/,file:./default.application.yaml,optional:file:./,optional:file:./config/" -COPY ./docker/default.application.yaml ./default.application.yaml - -COPY --from=builder /build/build/libs/docker/bibliothek.jar ./ -CMD ["java", "-jar", "/app/bibliothek.jar"] diff --git a/docker/default.application.yaml b/docker/default.application.yaml deleted file mode 100644 index cf06453..0000000 --- a/docker/default.application.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -app: - # path to volume in Dockerfile - make sure to keep in sync - storagePath: "/data/storage" - apiBaseUrl: "http://localhost/api" -server: - forward-headers-strategy: "framework" - port: 8080