Skip to content

Commit

Permalink
REFACTOR: NAV-158 - rename project dir in docker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunner246 committed Aug 25, 2024
1 parent 9345cad commit 1c32689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 1c32689

Please sign in to comment.