forked from lspcontainers/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From https://github.com/MaskRay/ccls (cherry picked from commit 601937c) Add build action to publish from my account until it's been merged upstream.
- Loading branch information
Showing
3 changed files
with
38 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM alpine as builder | ||
|
||
RUN apk add --no-cache clang17-dev clang17-static llvm17-dev llvm17-static llvm17-gtest cmake make git | ||
RUN git clone --depth=1 --recursive https://github.com/MaskRay/ccls /ccls | ||
|
||
WORKDIR /ccls | ||
|
||
RUN cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_COMPILER=/usr/bin/clang++-17 \ | ||
-DCMAKE_PREFIX_PATH=/usr/lib/llvm17 | ||
RUN cmake --build Release | ||
RUN cmake --build Release --target install | ||
|
||
FROM alpine | ||
|
||
RUN apk add --no-cache clang17 | ||
|
||
COPY --from=builder /usr/local/bin/ccls /usr/local/bin/ccls | ||
|
||
CMD ["/usr/local/bin/ccls"] |