From 1c32689067280d9ccd87be24ad8a2eb63cb3f9a1 Mon Sep 17 00:00:00 2001 From: MichaelBrunner Date: Sun, 25 Aug 2024 17:52:51 +0200 Subject: [PATCH] REFACTOR: NAV-158 - rename project dir in docker environment --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index dae4813..e1de8f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ RUN git clone https://github.com/microsoft/vcpkg.git /usr/src/vcpkg WORKDIR /usr/src/vcpkg RUN ./bootstrap-vcpkg.sh -COPY . /usr/src/myapp/ -COPY vcpkg.json /usr/src/myapp +COPY . /usr/src/raptorxx/ +COPY vcpkg.json /usr/src/raptorxx -WORKDIR /usr/src/myapp +WORKDIR /usr/src/raptorxx RUN /usr/src/vcpkg/vcpkg install --triplet x64-linux RUN cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/src/vcpkg/scripts/buildsystems/vcpkg.cmake @@ -22,10 +22,10 @@ RUN cmake --build build # Stage 2: Test execution environment FROM build AS runtime -WORKDIR /usr/src/myapp +WORKDIR /usr/src/raptorxx -COPY --from=build /usr/src/myapp/output/bin/release /usr/src/myapp/build -CMD for test_exe in /usr/src/myapp/build/*_tests; do echo "Running $test_exe"; "$test_exe"; done +COPY --from=build /usr/src/raptorxx/output/bin/release /usr/src/raptorxx/build +CMD for test_exe in /usr/src/raptorxx/build/*_tests; do echo "Running $test_exe"; "$test_exe"; done # $ docker build -t my-gcc-linux-app . # $ docker run -it --rm --name my-running-app my-gcc-linux-app \ No newline at end of file