diff --git a/docker/release/centos7/Dockerfile b/docker/release/centos7/Dockerfile index bd108f47f54..621d200a8ab 100644 --- a/docker/release/centos7/Dockerfile +++ b/docker/release/centos7/Dockerfile @@ -38,7 +38,8 @@ RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.r # Install latest powershell from Microsoft YUM Repo RUN yum install -y \ - powershell + powershell \ + && yum clean all # Use PowerShell as the default shell # Use array to avoid Docker prepending /bin/sh -c diff --git a/docker/release/fedora26/Dockerfile b/docker/release/fedora26/Dockerfile index cbb96d74c1e..b955b06d175 100644 --- a/docker/release/fedora26/Dockerfile +++ b/docker/release/fedora26/Dockerfile @@ -37,7 +37,8 @@ RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo # Install latest powershell from Microsoft YUM Repo -RUN dnf install -y powershell +RUN dnf install -y powershell \ + && dnf clean all # Use array to avoid Docker prepending /bin/sh -c CMD [ "pwsh" ] diff --git a/docker/release/fedora27/Dockerfile b/docker/release/fedora27/Dockerfile index 43cd6e50df4..55afd8cc587 100644 --- a/docker/release/fedora27/Dockerfile +++ b/docker/release/fedora27/Dockerfile @@ -37,7 +37,8 @@ RUN localedef --charmap=UTF-8 --inputfile=en_US $LANG RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo | tee /etc/yum.repos.d/microsoft.repo # Install latest powershell from Microsoft YUM Repo -RUN dnf install -y powershell +RUN dnf install -y powershell \ + && dnf clean all # Use array to avoid Docker prepending /bin/sh -c CMD [ "pwsh" ]