mirror of
https://github.com/harness-community/drone-helm-chart-container-registry.git
synced 2026-06-04 18:24:12 +08:00
windows dockerfile update
This commit is contained in:
@@ -7,8 +7,6 @@ WORKDIR C:\\app
|
||||
ENV HELM_EXPERIMENTAL_OCI=1
|
||||
ENV chocolateyVersion=1.4.0
|
||||
|
||||
ENV PATH="C:\\Program Files\\Git\\bin;$PATH"
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||
@@ -16,11 +14,14 @@ RUN set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||
|
||||
RUN choco install -y kubernetes-helm
|
||||
|
||||
RUN choco install -y git.install
|
||||
|
||||
ENV PATH="C:\\Program Files\\Git\\bin;$PATH"
|
||||
|
||||
COPY ./main.sh ./
|
||||
|
||||
# ENTRYPOINT ["python", "C:\\app\\main.py"]
|
||||
# CMD ["C:\\Program Files\\Git\\bin\\bash.exe", "-c", "./main.sh"]
|
||||
RUN chmod +x main.sh
|
||||
|
||||
# Execute main.sh in powershell
|
||||
ENTRYPOINT ["bash", "./main.sh"]
|
||||
Reference in New Issue
Block a user