2022-12-29 21:15:49 +01: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
|
|
|
|
|
|
|
|
|
|
|
|
RUN mkdir /application/
|
|
|
|
COPY --from=build /tmp/out/maven/*.jar /application/application.jar
|
|
|
|
WORKDIR /application/
|
|
|
|
|
|
|
|
EXPOSE 18080
|
|
|
|
|
2022-12-30 09:14:05 +01:00
|
|
|
CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.karanage.WebLauncher"]
|
2022-12-29 21:15:49 +01:00
|
|
|
|