mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
23 lines
737 B
Docker
23 lines
737 B
Docker
FROM toxchat/haskell:hs-tokstyle AS tokstyle
|
|
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
clang \
|
|
git \
|
|
libopus-dev \
|
|
libsodium-dev \
|
|
libvpx-dev \
|
|
&& 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"]
|
|
|
|
COPY toxav/ /src/workspace/c-toxcore/toxav/
|
|
COPY toxcore/ /src/workspace/c-toxcore/toxcore/
|
|
COPY toxencryptsave/ /src/workspace/c-toxcore/toxencryptsave/
|
|
COPY third_party/cmp/cmp.h /src/workspace/c-toxcore/third_party/cmp/cmp.h
|
|
RUN /bin/check-c $(find /src/workspace/c-toxcore -name "*.c")
|