2022-02-14 11:36:25 +08:00
|
|
|
FROM debian:bullseye-slim
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2018-09-19 11:15:50 +08:00
|
|
|
# Build-time environment variables
|
2022-02-07 07:53:41 +08:00
|
|
|
ARG VERSION_MSGPACK=4.0.0 \
|
2024-01-11 21:16:09 +08:00
|
|
|
VERSION_SODIUM=1.0.19 \
|
2022-02-07 07:53:41 +08:00
|
|
|
VERSION_OPUS=1.3.1 \
|
2022-02-14 11:36:25 +08:00
|
|
|
VERSION_VPX=1.11.0 \
|
2022-02-07 07:53:41 +08:00
|
|
|
\
|
|
|
|
SUPPORT_TEST=false \
|
|
|
|
SUPPORT_ARCH_i686=true \
|
|
|
|
SUPPORT_ARCH_x86_64=true \
|
|
|
|
CROSS_COMPILE=true
|
2017-02-16 18:18:17 +08:00
|
|
|
|
|
|
|
# Make those available when running the container
|
2022-02-07 07:53:41 +08:00
|
|
|
ENV SUPPORT_TEST=${SUPPORT_TEST} \
|
|
|
|
SUPPORT_ARCH_i686=${SUPPORT_ARCH_i686} \
|
|
|
|
SUPPORT_ARCH_x86_64=${SUPPORT_ARCH_x86_64} \
|
|
|
|
CROSS_COMPILE=${CROSS_COMPILE}
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2022-02-07 07:53:41 +08:00
|
|
|
WORKDIR /work
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY get_packages.sh .
|
2022-02-07 07:53:41 +08:00
|
|
|
RUN ./get_packages.sh
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY build_dependencies.sh .
|
2022-02-07 07:53:41 +08:00
|
|
|
RUN ./build_dependencies.sh
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY build_toxcore.sh .
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2022-02-07 07:53:41 +08:00
|
|
|
ENV ENABLE_TEST=false \
|
|
|
|
ALLOW_TEST_FAILURE=false \
|
|
|
|
ENABLE_ARCH_i686=true \
|
|
|
|
ENABLE_ARCH_x86_64=true \
|
|
|
|
EXTRA_CMAKE_FLAGS="-DTEST_TIMEOUT_SECONDS=90"
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2022-10-07 23:49:34 +08:00
|
|
|
ENTRYPOINT ["bash", "./build_toxcore.sh"]
|