I’m trying to create a docker image like this:
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y git cmake
RUN git clone https://github.com/user/REPO.git
RUN cd REPO
RUN rm -Rf build
RUN mkdir build
RUN cd build
RUN cmake ..
RUN make
RUN mv executable /usr/local/bin
RUN cd ~
RUN rm -Rf REPO
However it breaks at “RUN cmake ..”
With the following error:
#0 0.275 CMake Warning:
#0 0.275 Ignoring extra path from command line:
#0 0.275
#0 0.275 ".."
#0 0.275
#0 0.275
#0 0.275 CMake Error: The source directory "/" does not appear to contain CMakeLists.txt.
I have no idea what is going on. When I run this directly on the terminal it compiles completely fine.