uci-docker-build/Dockerfile
kebler.net c343cbb148 fix: deal with no src/ directory in current directory
fix: save old image by retagging or overwrite
add: allow only breaking cache for initialzation run of build
2023-01-21 22:41:14 -08:00

28 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"]