|
|
@@ -17,6 +17,15 @@ RUN mvn clean package -DskipTests
|
|
|
FROM openjdk:17-jdk-slim
|
|
|
# Set the working directory in the container
|
|
|
WORKDIR /app
|
|
|
+# Install fonts and fontconfig for Excel export (AWT/POI)
|
|
|
+RUN apt-get update && \
|
|
|
+ apt-get install -y \
|
|
|
+ fontconfig \
|
|
|
+ ttf-dejavu \
|
|
|
+ libfreetype6 \
|
|
|
+ libfontconfig1 \
|
|
|
+ && apt-get clean \
|
|
|
+ && rm -rf /var/lib/apt/lists/*
|
|
|
# Copy the built JAR file from the previous stage to the container
|
|
|
COPY --from=build /app/target/*.jar ./app.jar
|
|
|
# Set the command to run the application
|