Do the USER and WORKDIR instructions hold in downstream docker file?
<p>I have 2 docker images, the first Dockerfile creates a user using:</p>

<pre><code>RUN useradd -m newuser
</code></pre>

<p>then it switches to the user and workspace as follows:</p>

<pre><code>USER newuser
WORKDIR /home/newuser/
</code></pre>

<p>The second docker file reads from the first image using the FROM statement.</p>

<p>Should the <code>USER</code> and <code>WORKDIR</code> instructions still hold in the second file without having to put them in again?</p>