mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
09575dc05b
Needed for the build afterwards. Also added the cflite Dockerfile to automatic CI builds so changes to it are checked in pull requests. Also fixed the tokstyle docker image. It needs clang instead of gcc now.
27 lines
803 B
Docker
27 lines
803 B
Docker
# c-toxcore Clusterfuzzlite build environment
|
|
|
|
# We want to use the latest tools always
|
|
FROM gcr.io/oss-fuzz-base/base-builder:latest
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install --no-install-suggests --no-install-recommends \
|
|
cmake libtool autoconf automake pkg-config \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Static builds of dependencies
|
|
|
|
# libsodium
|
|
RUN git clone --depth 1 --branch 1.0.18 https://github.com/jedisct1/libsodium libsodium
|
|
WORKDIR $SRC/libsodium
|
|
RUN ./autogen.sh && ./configure --enable-shared=no && make install
|
|
WORKDIR $SRC
|
|
|
|
# Copy your project's source code.
|
|
COPY . $SRC/c-toxcore
|
|
# Working directory for build.sh.
|
|
WORKDIR $SRC/c-toxcore
|
|
RUN git submodule update --init --recursive
|
|
# Copy build.sh into $SRC dir.
|
|
COPY ./.clusterfuzzlite/build.sh $SRC/
|