Using ADD instruction instead of PowerShell download

This commit is contained in:
Alexey Pustovalov 2024-12-27 17:18:57 +09:00
parent df1ebe9768
commit 3b2243cf15
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,8 @@ LABEL org.opencontainers.image.title="Zabbix agent build (Windows)" `
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Set-Location -Path $env:SystemDrive\.; `
RUN --mount=from=config_templates,target=/tmp/conf \
Set-Location -Path $env:SystemDrive\.; `
`
New-Item -ItemType directory -Path $env:SystemDrive\zabbix_src | Out-Null; `
New-Item -ItemType directory -Path $env:ZBX_OUTPUT_DIR | Out-Null; `

View File

@ -40,7 +40,8 @@ LABEL org.opencontainers.image.title="Zabbix agent 2 build (Windows)" `
org.opencontainers.image.version="${ZBX_VERSION}" `
org.opencontainers.image.source="${ZBX_SOURCES}"
RUN Set-Location -Path $env:SystemDrive\.; `
RUN --mount=from=config_templates,target=/tmp/conf \
Set-Location -Path $env:SystemDrive\.; `
`
New-Item -ItemType directory -Path $env:ZBX_SOURCES_DIR | Out-Null; `
New-Item -ItemType directory -Path $env:ZBX_OUTPUT_DIR | Out-Null; `