<p>I have a very simple java jar application that fetches DB properties from the env variables.
I`ve dockerized it and migrated to Kubernetes. I also created a config map and secret with parameters to my DB - so I have access to these properties in the container. 
Is it possible to fetch all properties and inject it in Dockerfile? How can I do it?</p>

<pre><code>FROM openjdk:8-jre
ADD target/shopfront-0.0.1-SNAPSHOT.jar app.jar
EXPOSE 8010
ENTRYPOINT ["java","-Ddb.host=**value-from-env-variable**","-jar","/app.jar"]
</code></pre>

<p>You can use them like this</p>

<pre><code>ENTRYPOINT ["java", "-jar", "-Ddb.host=${DB_HOST}", "/app.jar"]
</code></pre>

<p>where DB_HOST should be defined in config map you have created.</p>

<p>I have tried this in my Spring Boot Application for setting Spring Profile.</p>
