all
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -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"]
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user