apache-dubbo
SUCCESS
18m 39s
History Source
SummaryIterations1Transcript6Dockerfile
Dockerfile23 lines · 686 chars
FROM maven:3.9.14-sapmachine-25 AS build

# Install system dependencies
RUN apt-get update -y \
    && apt-get install -y --no-install-recommends ca-certificates curl unzip zip \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace
COPY . .

# Build the project from source using Maven directly to avoid wrapper issues
RUN mvn -B -e --no-snapshot-updates -T 2C clean source:jar install -DembeddedZookeeperPath=/tmp/zookeeper -DskipTests -Dcheckstyle.skip=true -Djacoco.skip=true

FROM eclipse-temurin:25-jre AS runtime

WORKDIR /workspace

# Copy the Maven repository and the built workspace
COPY --from=build /root/.m2 /root/.m2
COPY --from=build /workspace /workspace

CMD ["bash"]