improve ci

This commit is contained in:
anthorob committed 2026-03-09 03:06:16 -04:00
1 parent d8bd5ecfdb
commit 25a5df0743
3 files changed
+48 -27

No files matched your search

+1 -12
View File
@@ -1,14 +1,3 @@
FROM docker.io/library/eclipse-temurin:25-jdk-alpine AS build
COPY .mvn/ .mvn
COPY mvnw pom.xml ./
COPY src ./src
COPY checkstyle.xml ./
RUN ["chmod", "+x", "./mvnw"]
RUN ./mvnw install
FROM docker.io/library/eclipse-temurin:25-jre
RUN apt-get update && apt-get install -y --no-install-recommends netcat-openbsd curl && rm -rf /var/lib/apt/lists/*
@@ -19,7 +8,7 @@ ARG API_PORT=9000
EXPOSE ${API_PORT}
COPY startup.sh ./
COPY --from=build /target/netneutrality.jar ./
COPY target/netneutrality.jar ./
RUN ["chmod", "+x", "./startup.sh"]
CMD ["./startup.sh"]