File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ COPY run_container.ps1 .
2727ENV OPA_PATH="C:\a pp\o pa_windows_amd64.exe"
2828RUN $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 }
30- RUN cmd /c icacls.exe $env:OPA_PATH /grant ' User Manager\C ontainerUser' :RX
30+ RUN icacls $env:OPA_PATH /grant " User Manager" \C ontainerUser:RX
3131USER ContainerUser
3232
3333CMD [ "powershell" , ".\\ run_container.ps1" ]
You can’t perform that action at this time.
0 commit comments