Skip to content

Commit 1ad1a3f

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] [CONFIG] Docker. vcpkg installation method changed.
1 parent 29988cb commit 1ad1a3f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ RUN apt-get update \
2727
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
2828

2929
# 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
3135
RUN apt-get -y update && \
3236
apt-get -y install --no-install-recommends --no-install-suggests \
33-
ca-certificates curl git ninja-build unzip zip && \
37+
curl git ninja-build && \
3438
rm -rf /var/lib/apt/lists/* && \
3539
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}" && \
3841
/opt/vcpkg/bootstrap-vcpkg.sh && \
3942
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && \
4043
rm -rf /var/lib/apt/lists/* && \

0 commit comments

Comments
 (0)