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