File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ LABEL scubagear_version=${SCUBAGEAR_VERSION}
1313WORKDIR /app
1414
1515# download azcopy exe to workdir
16- RUN Invoke-WebRequest -Uri $Env:AZCOPY_URL -OutFile AzCopy.zip -UseBasicParsing
16+ RUN $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -Uri $Env:AZCOPY_URL -OutFile AzCopy.zip -UseBasicParsing
1717RUN Expand-Archive .\A zCopy.zip ./AzCopy -Force
1818RUN $item = Get-ChildItem .\A zCopy\*\a zcopy.exe; Move-Item -Path $item -Destination .
1919RUN Remove-Item AzCopy.zip; Remove-Item -r .\A zCopy
@@ -25,7 +25,7 @@ RUN Initialize-SCuBA -Scope AllUsers -NoOPA
2525COPY run_container.ps1 .
2626
2727ENV OPA_PATH="C:\a pp\o pa_windows_amd64.exe"
28- RUN Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe -OutFile $Env:OPA_PATH -UseBasicParsing
28+ RUN $ProgressPreference = 'SilentlyContinue' ; Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe -OutFile $Env:OPA_PATH -UseBasicParsing
2929RUN if ((Get-FileHash $Env:OPA_PATH -Algorithm SHA256).Hash -ne ([System.Text.Encoding]::ASCII.GetString((Invoke-WebRequest -Uri https://openpolicyagent.org/downloads/v$($Env:OPA_VERSION)/opa_windows_amd64.exe.sha256 -UseBasicParsing).Content) -split ' ' )[0]) { exit 1 }
3030RUN icacls.exe $env:OPA_PATH /grant 'User Manager\C ontainerUser:RX'
3131USER ContainerUser
You can’t perform that action at this time.
0 commit comments