2020-10-25 00:39:52 +02:00
|
|
|
FROM maven:3.6.3-openjdk-16 AS build
|
|
|
|
|
|
|
|
COPY pom.xml /tmp/
|
|
|
|
COPY src /tmp/src/
|
|
|
|
WORKDIR /tmp/
|
|
|
|
RUN mvn clean compile assembly:single
|
|
|
|
|
|
|
|
FROM bellsoft/liberica-openjdk-alpine:latest
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
|
2023-11-11 10:50:11 +01:00
|
|
|
# add wget to manage the health check...
|
|
|
|
RUN apk add --no-cache wget
|
2020-10-25 00:39:52 +02:00
|
|
|
|
|
|
|
RUN mkdir /application/
|
|
|
|
COPY --from=build /tmp/out/maven/*.jar /application/application.jar
|
|
|
|
WORKDIR /application/
|
|
|
|
|
|
|
|
EXPOSE 18080
|
|
|
|
|
2022-03-13 18:22:44 +01:00
|
|
|
CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.karideo.WebLauncher"]
|
2020-10-25 00:39:52 +02:00
|
|
|
|