title: Is there a way to combine Docker images into 1 container?
body: <p>I have a few Dockerfiles right now.</p>
  
  <p>One is for Cassandra 3.5, and it is <code>FROM cassandra:3.5</code></p>
  
  <p>I also have a Dockerfile for Kafka, but t is quite a bit more complex. It is <code>FROM java:openjdk-8-fre</code> and it runs a long command to install Kafka and Zookeeper.</p>
  
  <p>Finally, I have an application written in Scala that uses SBT. </p>
  
  <p>For that Dockerfile, it is <code>FROM broadinstitute/scala-baseimage</code>, which gets me Java 8, Scala 2.11.7, and STB 0.13.9, which are what I need.</p>
  
  <p>Perhaps, I don't understand how Docker works, but my Scala program has Cassandra and Kafka as dependencies and for development purposes, I want others to be able to simply clone my repo with the <code>Dockerfile</code> and then be able to build it with Cassandra, Kafka, Scala, Java and SBT all baked in so that they can just compile the source. I'm having a lot of issues with this though. </p>
  
  <p>How do I combine these Dockerfiles? How do I simply make an environment with those things baked in?</p>