Projekti luotu tekoälyllä

This commit is contained in:
laurimaaninka committed 2026-11-04 18:25:54 +02:00
commit f9d32ad19a
12 files changed
+294

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
FROM maven:3.9-eclipse-temurin-21 AS build
WORKDIR /app
COPY pom.xml .
COPY src src
RUN mvn clean package -DskipTests
FROM eclipse-temurin:21-jre
RUN apt-get update && \
apt-get install -y nut-client && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=build \
/app/target/ups-reader-1.0.0.jar \
app.jar
VOLUME /data
CMD ["java", "-jar", "app.jar"]