Files
plugin-drone-helm-push/docker/Dockerfile.windows.amd64
T
2023-12-26 15:56:34 +05:30

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"]