| 1 |
FROM toxchat/c-toxcore:sources AS sources |
| 2 |
FROM alpine:3.19.0 |
| 3 |
|
| 4 |
RUN ["apk", "add", "--no-cache", \ |
| 5 |
"bash", \ |
| 6 |
"clang", \ |
| 7 |
"clang-extra-tools", \ |
| 8 |
"cmake", \ |
| 9 |
"colordiff", \ |
| 10 |
"libconfig-dev", \ |
| 11 |
"libsodium-dev", \ |
| 12 |
"libvpx-dev", \ |
| 13 |
"linux-headers", \ |
| 14 |
"opus-dev", \ |
| 15 |
"pkgconfig", \ |
| 16 |
"samurai"] |
| 17 |
|
| 18 |
ENV CC=clang CXX=clang++ |
| 19 |
|
| 20 |
COPY --from=sources /src/ /c-toxcore/ |
| 21 |
COPY other/analysis/run-clang-tidy other/analysis/variants.sh /c-toxcore/other/analysis/ |
| 22 |
COPY .clang-tidy /c-toxcore/ |
| 23 |
WORKDIR /c-toxcore |
| 24 |
RUN other/analysis/run-clang-tidy |