mirror of
https://github.com/harness-community/drone-helm-chart-container-registry.git
synced 2026-06-26 15:52:31 +08:00
21 lines
698 B
Docker
21 lines
698 B
Docker
# Use Windows Server Core as base
|
|
FROM --platform=windows/amd64 mcr.microsoft.com/windows/servercore:ltsc2022 as core
|
|
|
|
FROM --platform=windows/amd64 plugins/base:windows-ltsc2022-amd64
|
|
USER ContainerAdministrator
|
|
|
|
WORKDIR C:\\app
|
|
|
|
ENV HELM_EXPERIMENTAL_OCI=1
|
|
|
|
|
|
RUN curl.exe -LO "https://get.helm.sh/helm-v3.7.0-windows-amd64.zip" && \
|
|
Expand-Archive -Path helm-v3.7.0-windows-amd64.zip -DestinationPath . && \
|
|
Move-Item -Path .\windows-amd64\helm.exe -Destination C:\Windows\System32\helm.exe && \
|
|
Remove-Item -Path helm-v3.7.0-windows-amd64.zip, windows-amd64 -Recurse
|
|
|
|
# RUN powershell -Command Install-WindowsFeature Web-Server
|
|
|
|
COPY ./main.py ./
|
|
|
|
CMD ["python", "C:\\app\\main.py"] |