1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# escape=`
ARG WIN_VARIANT=1909
FROM mcr.microsoft.com/windows/servercore:${WIN_VARIANT}
ENV RUSTUP_HOME=C:\rustup CARGO_HOME=C:\cargo
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ADD https://win.rustup.rs/ C:\TEMP\rustup-init.exe
RUN C:\TEMP\rustup-init.exe -y --profile minimal --default-host i686-pc-windows-gnu
RUN setx /M PATH $(${Env:PATH} + \";${Env:CARGO_HOME}\bin\")
ARG GNUPG_VERSION=2.3.8_20221013
ADD https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-${GNUPG_VERSION}.exe C:\TEMP\gnupg-w32.exe
RUN C:\TEMP\gnupg-w32.exe /S
WORKDIR C:\workspace
COPY ./ ./
ENV GPGME_DEBUG 9
CMD ["cargo", "test", "--no-fail-fast", "--all-features"]
|