mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-04 08:11:45 +00:00
51b24d1c23
The master branch might include staging code that is subject to change, e.g. code including VLAs, which CompCert does not support and thus would fail on, which will be changed to not use VLAs once merged into the stable branch. See https://github.com/jedisct1/libsodium/pull/1188#issuecomment-2221660989
20 lines
550 B
Docker
20 lines
550 B
Docker
FROM toxchat/c-toxcore:sources AS sources
|
|
FROM toxchat/compcert:latest
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
|
gdb \
|
|
make \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /work
|
|
COPY --from=sources /src/ /work/
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
RUN git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium /work/libsodium
|
|
COPY other/docker/compcert/Makefile /work/
|
|
RUN make "-j$(nproc)"
|
|
RUN ./send_message_test | grep 'tox clients connected'
|