2020-10-27 22:03:02 +00:00
|
|
|
# escape=`
|
|
|
|
|
2022-12-25 12:54:07 +00:00
|
|
|
FROM "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2022-12-10.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
|
|
|
|
2022-09-29 00:49:42 +00:00
|
|
|
COPY install_pango.ps1 install_gst.ps1 install_gtk.ps1 install_dav1d.ps1 C:\
|
|
|
|
RUN C:\install_pango.ps1
|
2022-08-17 14:31:28 +00:00
|
|
|
RUN C:\install_gst.ps1
|
|
|
|
RUN C:\install_gtk.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-07-19 06:33:33 +00:00
|
|
|
RUN cargo install cargo-c --version 0.9.21+cargo-0.71
|