2020-10-27 22:03:02 +00:00
|
|
|
# escape=`
|
|
|
|
|
2022-09-28 23:54:02 +00:00
|
|
|
FROM "registry.freedesktop.org/gstreamer/gstreamer/amd64/windows:2022-09-23.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"]
|
|
|
|
|
|
|
|
ARG DEFAULT_BRANCH="main"
|
|
|
|
ARG RUST_VERSION="invalid"
|
|
|
|
|
2022-08-25 18:28:45 +00:00
|
|
|
RUN choco install -y pkgconfiglite nasm llvm
|
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
|