28 lines
721 B
Docker
28 lines
721 B
Docker
FROM maven:3.9.11-eclipse-temurin-21 AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pom.xml ./
|
|
|
|
RUN mvn -B dependency:go-offline
|
|
|
|
COPY src src
|
|
|
|
RUN mvn -B clean package -DskipTests
|
|
|
|
FROM eclipse-temurin:21-jre
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends libreoffice-writer-nogui && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/target/quarkus-app/lib/ ./lib/
|
|
COPY --from=build /app/target/quarkus-app/*.jar ./
|
|
COPY --from=build /app/target/quarkus-app/app/ ./app/
|
|
COPY --from=build /app/target/quarkus-app/quarkus/ ./quarkus/
|
|
|
|
EXPOSE 8081
|
|
|
|
ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
|
|
|
|
ENTRYPOINT ["java", "-jar", "/app/quarkus-run.jar"]
|