Skip to content

Commit

Permalink
Dockerfile: Set CMAKE_BUILD_TYPE as Release explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed Jul 10, 2024
1 parent 1bfca25 commit 173011c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ COPY --chown=app_user:app_user ./third_party ./third_party
COPY --chown=app_user:app_user ./src ./src

# Run the CMake build (then cleanup)
RUN cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/local && \
RUN cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local && \
cmake --build build --target install && \
rm -rf build src third_party CMakeLists.txt

Expand Down

0 comments on commit 173011c

Please sign in to comment.