diff --git a/Dockerfile b/Dockerfile index e986128..5f26681 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,6 +71,7 @@ RUN set -e; \ true ENV SHELL="/bin/bash" +SHELL [ "/bin/bash", "-c" ] COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu @@ -93,7 +94,7 @@ RUN echo "Running pre-package commands"; \ RUN echo "Setting up and installing packages"; \ $SHELL_OPTS; \ - if [ -n "${PACK_LIST}" ];then echo "Installing packages: $PACK_LIST";pkmgr install ${PACK_LIST};fi; \ + if [ -n "${PACK_LIST}" ];then echo "Installing packages: $PACK_LIST";echo "${PACK_LIST}" >/root/docker/setup/packages.txt;pkmgr install ${PACK_LIST};fi; \ echo "" RUN echo "Initializing packages before copying files to image"; \