This commit is contained in:
2025-11-28 02:15:38 +01:00
parent 0a2ea083df
commit 026eb05912
2 changed files with 15 additions and 4 deletions

View File

@@ -8,6 +8,17 @@ RUN mvn clean package -DskipTests
# Runtime stage
FROM eclipse-temurin:11-jre
WORKDIR /app
# Install OpenCV native libraries
RUN apt-get update && \
apt-get install -y libopencv-dev && \
rm -rf /var/lib/apt/lists/*
# Copy the JAR file
COPY --from=build /build/target/troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar app.jar
ENTRYPOINT ["java","-jar","/app/app.jar"]
# Set OpenCV library path and notification config
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
ENV NOTIFICATION_CONFIG=desktop
ENTRYPOINT ["java", "-Djava.library.path=/usr/lib/x86_64-linux-gnu", "-jar", "/app/app.jar"]

View File

@@ -1,8 +1,8 @@
package com.auction;
public class Main {
public static void main(String[] args) {
System.out.println("Troostwijk Auction Scraper");
System.out.println("Use TroostwijkScraper class to run the scraper. 3");
public static void main(String[] args) throws Exception {
System.out.println("Starting Troostwijk Auction Scraper...");
//TroostwijkScraper.main(args);
}
}