title: Spring Boot Application which triggers another App with CLI
body: <p>I am currently developing a Spring Boot Application which triggers a Python program via CLI. I've used Processbuilder to do that and it's been working ok so far. </p>
  
  <p>Now I'm trying to get the Spring Boot Application and the Python program in a Docker container. Since I'm new to Docker I don't know the best way to do this. I've tried using COPY to copy the whole folder to create an image but for some reason the folder pythonapp in the Container is always empty. </p>
  
  <p>Am I missing something or is there a better way to do this?</p>
  
  <pre><code>FROM openjdk:8u151-jdk-slim
  EXPOSE 8080
  ADD springbootapp-0.0.1.jar app.jar 
  COPY . /root/pythonapp
  RUN sh -c 'touch /app.jar'
  RUN apt-get update &amp;&amp; apt-get install -y python \
  python-gi \
  gir1.2-gtk-3.0
  ENV JAVA_OPTS=""
  ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]
  </code></pre>