Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Dockerfile RUN cmd before prompt

#!/bin/sh

# Where $ENVSUBS is whatever command you are looking to run
$ENVSUBS < fil1 > file2

npm install

# This will exec the CMD from your Dockerfile, i.e. "npm start"
exec "$@"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Dockerfile #RUN #cmd #prompt
ADD COMMENT
Topic
Name
8+5 =