2024-01-25 23:32:17 +08:00
|
|
|
FROM toxchat/c-toxcore:sources AS sources
|
2022-02-18 02:34:39 +08:00
|
|
|
FROM toxchat/haskell:hs-tokstyle AS tokstyle
|
2023-09-03 05:50:10 +08:00
|
|
|
FROM ubuntu:22.04
|
2022-02-18 02:34:39 +08:00
|
|
|
|
2023-12-27 03:39:22 +08:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
2022-02-18 02:34:39 +08:00
|
|
|
ca-certificates \
|
2022-03-31 02:13:47 +08:00
|
|
|
clang \
|
2022-02-18 02:34:39 +08:00
|
|
|
git \
|
2022-02-18 04:22:12 +08:00
|
|
|
libopus-dev \
|
2022-02-18 02:34:39 +08:00
|
|
|
libsodium-dev \
|
2022-02-18 04:22:12 +08:00
|
|
|
libvpx-dev \
|
2022-02-18 02:34:39 +08:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY --from=tokstyle /bin/check-c /bin/
|
|
|
|
RUN ["git", "clone", "--depth=1", "https://github.com/TokTok/hs-tokstyle", "/src/workspace/hs-tokstyle"]
|
|
|
|
|
2024-01-25 23:32:17 +08:00
|
|
|
COPY --from=sources /src/ /src/workspace/c-toxcore/
|
|
|
|
RUN /bin/check-c $(find /src/workspace/c-toxcore -name "*.c" \
|
|
|
|
-and -not -wholename "*/auto_tests/*" \
|
|
|
|
-and -not -wholename "*/other/*" \
|
|
|
|
-and -not -wholename "*/super_donators/*" \
|
|
|
|
-and -not -wholename "*/testing/*" \
|
|
|
|
-and -not -wholename "*/third_party/cmp/examples/*" \
|
|
|
|
-and -not -wholename "*/third_party/cmp/test/*")
|