ARG BASE_IMAGE FROM $BASE_IMAGE ARG LINUX_DISTRO=alpine WORKDIR /opt/$LINUX_DISTRO COPY ./distros/$LINUX_DISTRO ./distros/common ./ RUN echo "****** Building UCI Image ffrom Base $BASE_IMAGE; Distro: $LINUX_DISTRO *****"; \ chmod -R +x /opt/$LINUX_DISTRO; ls -la; pwd; \ echo " **** Running ${LINUX_DISTRO} specific init script ***** "; cat init.sh; ./init.sh; \ echo " ***** Running common initialzation script *****"; cat common.sh; ./common.sh \ echo " ********************************************************" # ENTRYPOINT ["entrypoint.sh"] CMD ["/bin/bash"]