ARG BASE_IMAGE FROM $BASE_IMAGE ARG BASE_IMAGE ARG KEEP ARG LINUX_DISTRO=alpine ARG SCRIPTS=/build WORKDIR $SCRIPTS COPY .src ./ RUN echo -e "\n ************************************************* \n"\ echo "****** Building Image from Base: $BASE_IMAGE; : Distro: $LINUX_DISTRO; *****"; \ chmod -R +x .; \ pwd; ls -la; \ echo " ---- running init script ---"; ./init.sh; \ echo -e "\n********************************************************" VOLUME [ "/data", "/opt", "/shell" ] WORKDIR /opt # ENTRYPOINT ["entrypoint.sh"] CMD ["/bin/bash"]