Skip to content

Commit 1ba3e19

Browse files
committed
try with progress change again
1 parent 1b2481e commit 1ba3e19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

m365/image/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LABEL scubagear_version=${SCUBAGEAR_VERSION}
1313
WORKDIR /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
1717
RUN Expand-Archive .\AzCopy.zip ./AzCopy -Force
1818
RUN $item = Get-ChildItem .\AzCopy\*\azcopy.exe; Move-Item -Path $item -Destination .
1919
RUN Remove-Item AzCopy.zip; Remove-Item -r .\AzCopy
@@ -25,7 +25,7 @@ RUN Initialize-SCuBA -Scope AllUsers -NoOPA
2525
COPY run_container.ps1 .
2626

2727
ENV OPA_PATH="C:\app\opa_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
2929
RUN 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 }
3030
RUN icacls.exe $env:OPA_PATH /grant 'User Manager\ContainerUser:RX'
3131
USER ContainerUser

0 commit comments

Comments
 (0)