From 17d01d7bb902d99933da1df9b9a2303f9ac840bf Mon Sep 17 00:00:00 2001 From: anakinxc Date: Fri, 8 Dec 2023 20:03:04 +0800 Subject: [PATCH] Tweak dockerfile --- dockerfiles/ubuntu-base-ci.DockerFile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dockerfiles/ubuntu-base-ci.DockerFile b/dockerfiles/ubuntu-base-ci.DockerFile index ed90a7d..bc5ff3f 100644 --- a/dockerfiles/ubuntu-base-ci.DockerFile +++ b/dockerfiles/ubuntu-base-ci.DockerFile @@ -5,7 +5,7 @@ LABEL maintainer="secretflow-contact@service.alipay.com" ARG TARGETPLATFORM # change dash to bash as default shell -RUN ln -sf /usr/bin/bash /bin/sh +RUN chsh -s /bin/bash $(whoami) RUN apt update \ && apt upgrade -y \ @@ -46,5 +46,3 @@ RUN if [ "$TARGETPLATFORM" = "linux/arm64" ] ; then BAZEL_ARCH=arm64 ; else BAZE # run as root for now WORKDIR /home/admin/ - -ENTRYPOINT [ "/bin/bash", "-lc" ]