toxcore/other/docker/windows/Dockerfile

34 lines
775 B
Docker
Raw Normal View History

FROM debian:buster-slim
2018-09-19 11:15:50 +08:00
# Build-time environment variables
ARG VERSION_SODIUM=1.0.18
ARG VERSION_OPUS=1.3.1
ARG VERSION_VPX=1.9.0
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
# 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}
2020-05-10 00:50:48 +08:00
COPY get_packages.sh .
RUN sh ./get_packages.sh
2020-05-10 00:50:48 +08:00
COPY build_dependencies.sh .
RUN sh ./build_dependencies.sh
2020-05-10 00:50:48 +08:00
COPY build_toxcore.sh .
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"
2020-05-10 00:50:48 +08:00
ENTRYPOINT ["sh", "./build_toxcore.sh"]