2022-10-20 18:48:17 -07:00
|
|
|
ARG BASE_IMAGE
|
|
|
|
FROM $BASE_IMAGE
|
2023-01-17 11:53:24 -08:00
|
|
|
ARG BASE_IMAGE
|
|
|
|
ARG KEEP
|
2023-01-21 22:22:41 -08:00
|
|
|
ARG SYSADMIN_PW
|
2022-10-20 18:48:17 -07:00
|
|
|
ARG LINUX_DISTRO=alpine
|
2023-01-17 11:53:24 -08:00
|
|
|
ARG SCRIPTS=/build
|
|
|
|
WORKDIR $SCRIPTS
|
|
|
|
COPY .src ./
|
2022-10-20 18:48:17 -07:00
|
|
|
|
2023-01-17 11:53:24 -08:00
|
|
|
RUN echo -e "\n ************************************************* \n"\
|
|
|
|
echo "****** Building Image from Base: $BASE_IMAGE; : Distro: $LINUX_DISTRO; *****"; \
|
2023-01-21 22:22:41 -08:00
|
|
|
echo " ---- running packages install script ---"; /bin/sh ./packages.sh; \
|
|
|
|
echo -e "\n********************************************************"
|
|
|
|
|
|
|
|
ARG CACHE_BUST
|
|
|
|
RUN echo -e "\n ************************************************* \n" \
|
|
|
|
echo "****** CACHE_BUST ${CACHE_BUST} "; \
|
|
|
|
echo "****** Running Initialization Script "; \
|
2023-01-17 11:53:24 -08:00
|
|
|
chmod -R +x .; \
|
|
|
|
pwd; ls -la; \
|
2023-01-21 22:22:41 -08:00
|
|
|
echo " ---- running init script ---"; /bin/bash ./init.sh; \
|
2023-01-17 11:53:24 -08:00
|
|
|
echo -e "\n********************************************************"
|
2022-10-20 18:48:17 -07:00
|
|
|
|
2023-01-17 11:53:24 -08:00
|
|
|
VOLUME [ "/data", "/opt", "/shell" ]
|
|
|
|
WORKDIR /opt
|
2022-10-20 18:48:17 -07:00
|
|
|
# ENTRYPOINT ["entrypoint.sh"]
|
|
|
|
CMD ["/bin/bash"]
|