Update OpenJDK in Dockerfile to fix build
Change-Id: I90a5ac1e1b8ff44e4448e6c774940cef1009b693
diff --git a/Dockerfile b/Dockerfile
index 6ee26bf..68d67b2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
# Use alpine linux as base image
-FROM openjdk:8-alpine as builder
+FROM openjdk:19-alpine as builder
# Copy repository respecting .dockerignore
COPY . /kustvakt
@@ -33,8 +33,7 @@
RUN rm -r Krill
# Install Kustvakt core
-RUN cd core && \
- mvn clean install
+RUN mvn -f core/pom.xml clean install
# Package lite
RUN cd lite && \
@@ -54,7 +53,7 @@
RUN cd ${M2_HOME} && rm -r .m2
-FROM openjdk:8-alpine
+FROM openjdk:19-alpine
RUN addgroup -S korap && \
adduser -S kustvakt -G korap && \