We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45342da commit 6db5faaCopy full SHA for 6db5faa
Dockerfile
@@ -29,11 +29,13 @@ WORKDIR /root/Mergen/build
29
30
# Default build argument for testing
31
ARG TESTING=false
32
+ENV TESTING ${TESTING}
33
34
# Run cmake with the option to enable testing if TESTING is true
35
RUN cmake .. ${TESTING:+-DMERGEN_TESTING=1} && cmake --build . -j $(nproc)
36
37
# Provide the built binary path as the default output for the container
38
WORKDIR /root/Mergen/build
-#ENTRYPOINT ["/root/Mergen/build/lifter"]
39
-CMD ["cp", "/root/Mergen/build/lifter", "/output/lifter"]
+
40
+# bash magic
41
+ENTRYPOINT ["/bin/bash", "-c", "if [ \"$TESTING\" == \"true\" ]; then /root/Mergen/build/lifter; else cp /root/Mergen/build/lifter /output/lifter; fi"]
0 commit comments