Commit 3dea5cdd authored by Christos Tranoris's avatar Christos Tranoris
Browse files

fox Dockerfile

parent f33331bf
Loading
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
# Multi-stage build for TFS Controller
# Stage 1: Build the application
FROM maven:3.9.6-eclipse-temurin-17 AS builder
# FROM maven:3.9.6-eclipse-temurin-17 AS builder

WORKDIR /build
# WORKDIR /build

# Copy pom.xml and download dependencies
COPY pom.xml .
RUN mvn dependency:go-offline -B
# # Copy pom.xml and download dependencies
# COPY pom.xml .
# RUN mvn dependency:go-offline -B

# Copy source code
COPY src ./src
# # Copy source code
# COPY src ./src

# Build the application
RUN mvn clean package -DskipTests
# # Build the application
# RUN mvn clean package -DskipTests

# Stage 2: Runtime image
FROM eclipse-temurin:17-jdk-alpine
@@ -20,7 +20,8 @@ FROM eclipse-temurin:17-jdk-alpine
WORKDIR /app

# Copy the built JAR from builder stage
COPY --from=builder /build/target/org.etsi.osl.controllers.ietf.ns-0.0.1-SNAPSHOT-exec.jar app.jar
# COPY --from=builder /build/target/org.etsi.osl.controllers.ietf.ns-0.0.9-SNAPSHOT.jar app.jar
COPY target/org.etsi.osl.controllers.ietf.ns-0.0.9-SNAPSHOT-exec.jar app.jar

# Run the application
ENTRYPOINT ["java", "-jar", "app.jar"]
 No newline at end of file