2021-02-22 10:15:13 +08:00
|
|
|
FROM debian:buster-slim
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2018-09-19 11:15:50 +08:00
|
|
|
# Build-time environment variables
|
2019-07-21 08:00:01 +08:00
|
|
|
ARG VERSION_SODIUM=1.0.18
|
2021-02-22 10:15:13 +08:00
|
|
|
ARG VERSION_OPUS=1.3.1
|
|
|
|
ARG VERSION_VPX=1.9.0
|
2017-02-16 18:18:17 +08:00
|
|
|
|
|
|
|
ARG SUPPORT_TEST=false
|
|
|
|
ARG SUPPORT_ARCH_i686=true
|
|
|
|
ARG SUPPORT_ARCH_x86_64=true
|
2020-05-10 00:50:48 +08:00
|
|
|
ARG CROSS_COMPILE=true
|
2017-02-16 18:18:17 +08:00
|
|
|
|
|
|
|
# Make those available when running the container
|
|
|
|
ENV SUPPORT_TEST=${SUPPORT_TEST}
|
|
|
|
ENV SUPPORT_ARCH_i686=${SUPPORT_ARCH_i686}
|
|
|
|
ENV SUPPORT_ARCH_x86_64=${SUPPORT_ARCH_x86_64}
|
2020-05-10 00:50:48 +08:00
|
|
|
ENV CROSS_COMPILE=${CROSS_COMPILE}
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY get_packages.sh .
|
2017-02-16 18:18:17 +08:00
|
|
|
RUN sh ./get_packages.sh
|
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY build_dependencies.sh .
|
2017-02-16 18:18:17 +08:00
|
|
|
RUN sh ./build_dependencies.sh
|
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
COPY build_toxcore.sh .
|
2017-02-16 18:18:17 +08:00
|
|
|
|
|
|
|
ENV ENABLE_TEST=false
|
|
|
|
ENV ALLOW_TEST_FAILURE=false
|
|
|
|
ENV ENABLE_ARCH_i686=true
|
|
|
|
ENV ENABLE_ARCH_x86_64=true
|
2020-05-10 00:50:48 +08:00
|
|
|
ENV EXTRA_CMAKE_FLAGS="-DTEST_TIMEOUT_SECONDS=90"
|
2017-02-16 18:18:17 +08:00
|
|
|
|
2020-05-10 00:50:48 +08:00
|
|
|
ENTRYPOINT ["sh", "./build_toxcore.sh"]
|