-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 1.17 KB
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ── Build stage ────────────────────────────────────────────────
FROM maven:3.9-eclipse-temurin-21 AS build
WORKDIR /workspace
COPY pom.xml .
COPY testara-agent/pom.xml testara-agent/
COPY testara-agent-cli/pom.xml testara-agent-cli/
COPY testara-agent-mcp/pom.xml testara-agent-mcp/
# Download dependencies (cache layer)
RUN mvn -pl testara-agent-cli -am dependency:go-offline -B -q || true
COPY . .
RUN mvn -pl testara-agent-cli -am package -DskipTests -B -q
# ── Runtime stage ───────────────────────────────────────────────
FROM eclipse-temurin:21-jre-alpine
LABEL org.opencontainers.image.source="https://github.com/ygrip/testara"
LABEL org.opencontainers.image.description="Testara Agent — agentic skills for Testara automation projects"
RUN addgroup -S testara && adduser -S testara -G testara
USER testara
WORKDIR /workspace
COPY --from=build /workspace/testara-agent-cli/target/testara-agent.jar /app/testara-agent.jar
ENTRYPOINT ["java", "-jar", "/app/testara-agent.jar"]
CMD ["--help"]