2022-02-18 02:34:39 +08:00
|
|
|
FROM toxchat/haskell:hs-tokstyle AS tokstyle
|
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
|
|
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")
|