Select Page
  1. Command “docker file” uses /bin/sh shall – on github people state it is hardcoded. But you can overcome this limitation placing this command into Dockerfile:
    RUN rm /bin/sh && ln -s /bin/bash /bin/sh
  2. Build has its step-scopes. For example – If you need to “source” some file during image build you have to first use step 1 to make use of bash and then chain all commands which need to use variables from sourced files.
    RUN source $HOME/.bashrc && echo Y | gcloud components install kubectl