29 lines
944 B
Docker
29 lines
944 B
Docker
ARG BASE_IMAGE
|
|
FROM $BASE_IMAGE
|
|
ARG BASE_IMAGE
|
|
ARG KEEP
|
|
ARG SYSADMIN_PW
|
|
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; *****"; \
|
|
echo " ---- running packages install script ---"; /bin/sh ./packages.sh; \
|
|
echo -e "\n********************************************************"
|
|
|
|
ARG BUST_INIT_CACHE
|
|
RUN echo -e "\n ************************************************* \n" \
|
|
echo "****** BUST_INIT_CACHE ${BUST_INIT_CACHE} "; \
|
|
echo "****** Running Initialization Script "; \
|
|
chmod -R +x .; \
|
|
pwd; ls -la; \
|
|
echo " ---- running init script ---"; /bin/bash ./init.sh; \
|
|
echo -e "\n********************************************************"
|
|
|
|
VOLUME [ "/data", "/opt", "/shell" ]
|
|
WORKDIR /opt
|
|
# ENTRYPOINT ["entrypoint.sh"]
|
|
CMD ["/bin/bash"]
|