Skip to content

Commit

Permalink
Fix the Dockerfile (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik authored Jan 6, 2025
1 parent 43186b9 commit ad51a1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ RUN java -version && mvn --version
COPY calcite-rs-jni/ /calcite-rs-jni/
RUN mkdir -p /root/.m2 /root/.gradle
VOLUME /root/.m2 /root/.gradle

WORKDIR /calcite-rs-jni
RUN sh build.sh
RUN apt-get update && apt-get install -y gradle
RUN chmod +x build.sh

# Run build.sh with detailed logging
RUN sh -x build.sh 2>&1 | tee build.log || (echo "=== Build failed. Last 50 lines of build.log: ===" && tail -n 50 build.log && exit 1)

# Put all the jars into target/dependency folder
RUN mvn dependency:copy-dependencies
Expand Down

0 comments on commit ad51a1c

Please sign in to comment.