Sfoglia il codice sorgente

Merge branch 'feat/behavior_record' of FanYanPeng/EAI-Backend into refactor

WuZiLong 7 mesi fa
parent
commit
7fb4baef60
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      Dockerfile

+ 9 - 0
Dockerfile

@@ -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