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 \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libmsgpack-dev \
|
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-02-18 04:22:12 +08:00
|
|
|
RUN /bin/check-c $(find /src/workspace/c-toxcore -name "*.c")
|