<p>I have to convert an existing <code>nodejs</code> application to run on the RedHat OpenShift container platform. Currently, the application is run as follows:</p>

<pre><code>node index.js $HOME/arg1.json $HOME/arg2.json
</code></pre>

<p>Using files for arguments is <strong>important</strong> for this application since the number of arguments are quite large.</p>

<p>How can I ensure that the container version is also run off of the configuration files?</p>

cogitoergosum
<p>You mention in your first comment the requirement that filenames be specified at runtime. Something like this will work:</p>

<pre><code>ENV work /app
WORKDIR $work
COPY ./arg1.json ./arg2.json $work/

CMD["node", "index.js", "./arg1.json", "arg2.json"]
</code></pre>

<p>Runtime command:</p>

<pre><code>docker run -v $(pwd)/myarg1.json:/app/arg1.json -v $(pwd)/myarg2.json:/app/arg2.json &lt;image&gt; 
</code></pre>
