Skip to content

Commit 5e6ba29

Browse files
authored
Merge pull request #90 from sir-gon/develop
[REFACTOR] [CONFIG] Docker. vcpkg installation method changed.
2 parents 5ed1146 + 78b0e7a commit 5e6ba29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ RUN apt-get update \
2424

2525

2626
ENV VCPKG_FORCE_SYSTEM_BINARIES=1
27+
ENV VCPKG_VERSION=2024.10.21
28+
ENV VCPKG_ROOT=/opt/vcpkg
2729

2830
# vcpkg Package Manager
29-
ADD https://github.com/microsoft/vcpkg/archive/refs/tags/2024.10.21.tar.gz vcpkg.tar.gz
3031
RUN apt-get -y update && \
3132
apt-get -y install --no-install-recommends --no-install-suggests \
3233
ca-certificates curl git ninja-build unzip zip && \
3334
rm -rf /var/lib/apt/lists/* && \
3435
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}" && \
3737
/opt/vcpkg/bootstrap-vcpkg.sh && \
3838
ln -s /opt/vcpkg/vcpkg /usr/local/bin/vcpkg && \
3939
rm -rf /var/lib/apt/lists/* && \

0 commit comments

Comments
 (0)