diff --git a/cluster-autoscaler/Dockerfile.amd64 b/cluster-autoscaler/Dockerfile.amd64 index 2a1681fe203a..8e4b6db52ad2 100644 --- a/cluster-autoscaler/Dockerfile.amd64 +++ b/cluster-autoscaler/Dockerfile.amd64 @@ -11,9 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ARG BASEIMAGE=gcr.io/distroless/static:latest-amd64 +ARG BASEIMAGE=gcr.io/distroless/static:nonroot-amd64 FROM $BASEIMAGE LABEL maintainer="Marcin Wielgus " COPY cluster-autoscaler-amd64 /cluster-autoscaler +WORKDIR / CMD ["/cluster-autoscaler"] diff --git a/cluster-autoscaler/Dockerfile.arm64 b/cluster-autoscaler/Dockerfile.arm64 index 3cbcb994d524..45dc6c8f5c0c 100644 --- a/cluster-autoscaler/Dockerfile.arm64 +++ b/cluster-autoscaler/Dockerfile.arm64 @@ -11,9 +11,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ARG BASEIMAGE=gcr.io/distroless/static:latest-arm64 +ARG BASEIMAGE=gcr.io/distroless/static:nonroot-arm64 FROM $BASEIMAGE LABEL maintainer="Marcin Wielgus " COPY cluster-autoscaler-arm64 /cluster-autoscaler +WORKDIR / CMD ["/cluster-autoscaler"]