-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
35 lines (30 loc) · 911 Bytes
/
Dockerfile
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
32
33
34
35
ARG TARGET_ARCH
FROM quay.io/pypa/manylinux_2_28_${TARGET_ARCH}:latest
RUN set -x \
&& yum install -y \
curl \
git \
gcc-toolset-13-libasan-devel \
ninja-build \
tar \
unzip \
zip \
&& yum clean all \
&& rm -rf /var/cache/yum
ENV VCPKG_DISABLE_METRICS="1"
ENV VCPKG_FORCE_SYSTEM_BINARIES="1"
COPY .vcpkg /tmp/build/.vcpkg
COPY vcpkg.json vcpkg-configuration.json /tmp/build/
RUN set -x \
&& (cd /tmp/build \
&& TRIPLET=$(uname -m | sed s/x86_64/x64/)-linux \
&& git clone https://github.com/Microsoft/vcpkg \
&& ./vcpkg/bootstrap-vcpkg.sh \
&& ./vcpkg/vcpkg install --triplet=${TRIPLET} \
&& mkdir /opt/libs \
&& mv vcpkg_installed/${TRIPLET}/* /opt/libs/) \
&& rm -rf /tmp/build
ENV CPATH="/opt/libs/include"
ENV LIBRARY_PATH="/opt/libs/lib"
ENV LD_LIBRARY_PATH="/opt/libs/lib"
ENV FORCE_COLOR="1"