Actually i’m having a script file which will have echo “hello” ==> script.sh
and the docker code which i have used is
FROM alpine:latest
Copy the script.sh file into the container
COPY script.sh /app/
Make the script executable
RUN chmod +x /app/script.sh
Set the entrypoint to execute script.sh and keep the container running
ENTRYPOINT [“sh”, “-c”, “/app/script.sh && tail -f /dev/null”]
when i run this script it going to excited state even i have used
CMD [“sh”, “-c”, “/app/script.sh”]
then also its moving to excited state