This commit is contained in:
2026-05-02 02:54:58 +03:00
parent fa7241c0a7
commit e342c1527b
2 changed files with 28 additions and 83 deletions
+10 -20
View File
@@ -1,24 +1,14 @@
FROM ubuntu:24.04
FROM mcr.microsoft.com/windows/servercore:ltsc2022
ENV DEBIAN_FRONTEND=noninteractive
ENV VCPKG_ROOT=/opt/vcpkg
ENV PATH="${VCPKG_ROOT}:${PATH}"
SHELL ["cmd", "/S", "/C"]
RUN apt-get update && apt-get install -y \
build-essential \
mingw-w64 \
cmake \
ninja-build \
git \
curl \
zip \
unzip \
tar \
pkg-config \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN powershell -Command `
Invoke-WebRequest https://aka.ms/vs/17/release/vs_buildtools.exe -OutFile C:\vs_buildtools.exe; `
Start-Process C:\vs_buildtools.exe -ArgumentList '--quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.CMake.Project' -Wait; `
Remove-Item C:\vs_buildtools.exe
RUN git clone https://github.com/microsoft/vcpkg.git ${VCPKG_ROOT} \
&& ${VCPKG_ROOT}/bootstrap-vcpkg.sh
RUN powershell -Command `
git clone https://github.com/microsoft/vcpkg C:\vcpkg; `
C:\vcpkg\bootstrap-vcpkg.bat
WORKDIR /workspace
WORKDIR C:\workspace