karusic/back/Dockerfile

22 lines
492 B
Docker
Raw Normal View History

FROM maven:3-openjdk-18 AS build
2022-06-19 19:24:04 +02:00
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
# add wget to manage the health check...
RUN apk add --no-cache wget
2022-06-19 19:24:04 +02:00
RUN mkdir /application/
COPY --from=build /tmp/out/maven/*.jar /application/application.jar
WORKDIR /application/
EXPOSE 18080
2022-07-15 15:09:08 +02:00
CMD ["java", "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.karusic.WebLauncher"]
2022-06-19 19:24:04 +02:00