File: Dockerfile.windows

package info (click to toggle)
rust-gpgme 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 552 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (2)
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"]