2020-10-27 22:03:02 +00:00
|
|
|
# escape=`
|
|
|
|
|
2023-07-19 07:53:22 +00:00
|
|
|
FROM "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2023-07-17.0-main"
|
2020-10-27 22:03:02 +00:00
|
|
|
|
|
|
|
# Make sure any failure in PowerShell is fatal
|
|
|
|
ENV ErrorActionPreference='Stop'
|
|
|
|
SHELL ["powershell","-NoLogo", "-NonInteractive", "-Command"]
|
|
|
|
|
2023-02-20 07:55:58 +00:00
|
|
|
ARG DEFAULT_BRANCH="main"
|
2020-10-27 22:03:02 +00:00
|
|
|
ARG RUST_VERSION="invalid"
|
|
|
|
|
2023-05-11 16:23:50 +00:00
|
|
|
RUN choco install -y pkgconfiglite nasm llvm openssl
|
2022-08-18 09:51:04 +00:00
|
|
|
|
|
|
|
# https://stackoverflow.com/a/50716450
|
2022-08-25 18:28:45 +00:00
|
|
|
RUN setx PATH '%PATH%;C:\Program Files\NASM;C:\gst-install\bin'
|
2022-08-17 15:03:27 +00:00
|
|
|
ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig"
|
2020-10-27 22:03:02 +00:00
|
|
|
|
2023-07-19 07:54:06 +00:00
|
|
|
COPY install_gst.ps1 install_dav1d.ps1 C:\
|
2022-08-17 14:31:28 +00:00
|
|
|
RUN C:\install_gst.ps1
|
2022-08-25 18:28:45 +00:00
|
|
|
RUN C:\install_dav1d.ps1
|
2022-08-17 14:31:28 +00:00
|
|
|
|
2020-10-27 22:03:02 +00:00
|
|
|
RUN Invoke-WebRequest -Uri https://win.rustup.rs/x86_64 -OutFile C:\rustup-init.exe
|
|
|
|
RUN C:\rustup-init.exe -y --profile minimal --default-toolchain $env:RUST_VERSION
|
2023-08-07 06:28:56 +00:00
|
|
|
RUN cargo install cargo-c --version 0.9.22+cargo-0.72
|