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