mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
8328449c1a
This is especially noticeable on local builds (less so on the github workers).
25 lines
528 B
Docker
25 lines
528 B
Docker
FROM toxchat/c-toxcore:sources AS sources
|
|
FROM alpine:3.19.0
|
|
|
|
RUN ["apk", "add", "--no-cache", \
|
|
"bash", \
|
|
"clang", \
|
|
"clang-extra-tools", \
|
|
"cmake", \
|
|
"colordiff", \
|
|
"libconfig-dev", \
|
|
"libsodium-dev", \
|
|
"libvpx-dev", \
|
|
"linux-headers", \
|
|
"opus-dev", \
|
|
"pkgconfig", \
|
|
"samurai"]
|
|
|
|
ENV CC=clang CXX=clang++
|
|
|
|
COPY --from=sources /src/ /c-toxcore/
|
|
COPY other/analysis/run-clang-tidy other/analysis/variants.sh /c-toxcore/other/analysis/
|
|
COPY .clang-tidy /c-toxcore/
|
|
WORKDIR /c-toxcore
|
|
RUN other/analysis/run-clang-tidy
|