summaryrefslogtreecommitdiff
path: root/other/docker/windows/Dockerfile
blob: 079032394633198e96e46a62c20875d462bde077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM debian:stretch-slim

# Build-time enviroment variables
ARG VERSION_SODIUM=1.0.16
ARG VERSION_OPUS=v1.2.1
ARG VERSION_VPX=v1.6.1

ARG SUPPORT_TEST=false
ARG SUPPORT_ARCH_i686=true
ARG SUPPORT_ARCH_x86_64=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}

ADD get_packages.sh .
RUN sh ./get_packages.sh

ADD build_dependencies.sh .
RUN sh ./build_dependencies.sh

ADD build_toxcore.sh .

ENV ENABLE_TEST=false
ENV ALLOW_TEST_FAILURE=false
ENV ENABLE_ARCH_i686=true
ENV ENABLE_ARCH_x86_64=true
ENV EXTRA_CMAKE_FLAGS="-DWARNINGS=OFF -DBOOTSTRAP_DAEMON=OFF -DTEST_TIMEOUT_SECONDS=300"

CMD sh ./build_toxcore.sh