mirror of
https://github.com/EndPositive/slipstream.git
synced 2025-10-08 12:25:04 +00:00
Add caching to Dockerfile
This commit is contained in:
parent
afe2a2f40a
commit
9f457c1392
1 changed files with 5 additions and 5 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -16,19 +16,19 @@ FROM development AS builder
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN cmake \
|
||||
RUN --mount=type=cache,target=/usr/src/app/cmake-build-release \
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_MAKE_PROGRAM=ninja \
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
-G Ninja \
|
||||
-S /usr/src/app \
|
||||
-B /usr/src/app/cmake-build-release
|
||||
|
||||
RUN cmake \
|
||||
-B /usr/src/app/cmake-build-release && \
|
||||
cmake \
|
||||
--build /usr/src/app/cmake-build-release \
|
||||
--target slipstream \
|
||||
-j 18 && mv cmake-build-release/slipstream .
|
||||
-j 18 && cp cmake-build-release/slipstream .
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue