File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,17 @@ RUN apt-get update \
27
27
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
28
28
29
29
# vcpkg Package Manager
30
- ADD https://github.com/microsoft/vcpkg/archive/refs/tags/2024.10.21.tar.gz vcpkg.tar.gz
30
+ ENV VCPKG_FORCE_SYSTEM_BINARIES=1
31
+ ENV VCPKG_VERSION=2024.10.21
32
+ ENV VCPKG_ROOT=/opt/vcpkg
33
+
34
+ # vcpkg Package Manager
31
35
RUN apt-get -y update && \
32
36
apt-get -y install --no-install-recommends --no-install-suggests \
33
- ca-certificates curl git ninja-build unzip zip && \
37
+ curl git ninja-build && \
34
38
rm -rf /var/lib/apt/lists/* && \
35
39
mkdir /opt/vcpkg && \
36
- tar xf vcpkg.tar.gz --strip-components=1 -C /opt/vcpkg && \
37
- rm -rf vcpkg.tar.gz && \
40
+ git clone --branch ${VCPKG_VERSION} https://github.com/microsoft/vcpkg "${VCPKG_ROOT}" && \
38
41
/opt/vcpkg/bootstrap-vcpkg.sh && \
39
42
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && \
40
43
rm -rf /var/lib/apt/lists/* && \
You can’t perform that action at this time.
0 commit comments