how to pass a –login into docker build
I have some script that I need to run inside the container, and somehow it only run if I run it inside a
I normally run my docker:
docker build -t sometags . and I noticed it only run
I know I can just use
bash -l -c "some-command-here" but I’d say it’s my final fallback if nothing can helps.
so, tl;dr: how can I achieve something like this in my Dockerfile
#dockerfile RUN bash --login RUN some-script
and then, I’ll just run it with:
docker build -t x/y:z .
the scripts I want to run is things like: gem install bundler, and bundle install.