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"]
|
|
|
|
|
2022-02-24 05:36:08 +08:00
|
|
|
COPY toxav/ /src/workspace/c-toxcore/toxav/
|
2022-02-18 02:34:39 +08:00
|
|
|
COPY toxcore/ /src/workspace/c-toxcore/toxcore/
|
|
|
|
COPY toxencryptsave/ /src/workspace/c-toxcore/toxencryptsave/
|
2022-03-25 02:16:45 +08:00
|
|
|
COPY third_party/cmp/cmp.h /src/workspace/c-toxcore/third_party/cmp/cmp.h
|
2022-02-18 04:22:12 +08:00
|
|
|
RUN /bin/check-c $(find /src/workspace/c-toxcore -name "*.c")
|