title: Dockerfile build fails with source-command not found
body: <p>I'm trying to build <a href="https://v8.dev/docs/source-code" rel="nofollow noreferrer">v8</a> from source using a <code>Dockerfile</code>:</p>
  <pre><code>FROM ubuntu:20.04
  
  ARG V8_REPO=https://chromium.googlesource.com/chromium/tools/depot_tools.git
  ARG ADD_DEPOTTOOLS2PATH='export PATH=/depot_tools:$PATH'
  
  RUN                                         \
  apt-get update -y                        &amp;&amp; \
  apt-get install git -y                   &amp;&amp; \
  apt-get install vim -y                   &amp;&amp; \
  apt-get install wget -y                  &amp;&amp; \
  apt-get install python3 -y               &amp;&amp; \
  git clone ${V8_REPO}                     &amp;&amp; \
  echo ${ADD_DEPOTTOOLS2PATH} &gt;&gt; ~/.bashrc &amp;&amp; \
  source ~/.bashrc
  </code></pre>
  <p>For some reason, it fails in <code>source</code>-ing <code>.bashrc</code>:</p>
  <pre><code>$ docker build --tag host --file .\Dockerfile.txt .
  ...
  #5 47.17 /bin/sh: 1: source: not found
  ------
  executor failed running [... &amp;&amp; source ~/.bashrc]: exit code: 127
  </code></pre>