summaryrefslogtreecommitdiffhomepage
path: root/test/scripts/Dockerfile
blob: 4501dd279e851d1749bc24acc8c6f0facb8c4c01 (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
ARG IMAGE=ghcr.io/mullvad/mullvadvpn-app-build:latest
FROM $IMAGE

ENV OPENSSL_STATIC=1 \
    OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu \
    OPENSSL_INCLUDE_DIR=/usr/include/openssl \
    TEST_MANAGER_STATIC=1

RUN rustup target add x86_64-pc-windows-gnu

RUN apt-get update && apt-get install -y \
    mtools pkg-config libssl-dev

RUN git clone https://github.com/the-tcpdump-group/libpcap.git
RUN apt-get install -y autoconf flex bison

RUN cd libpcap \
    && ./autogen.sh \
    && ./configure --enable-remote=yes --enable-dbus=no --enable-shared=no \
    && make \
    && make install

RUN rm -rf libpcap
RUN apt-get remove -y autoconf flex bison