title: docker container python subprocess.Popen php5.6 script is it possible to execute?
body: <p>I'm trying to dockerize my python app locally. The app works perfectly when I start in in terminal (Linux mint 19.1). The app has some outputs from the app-shell. First one is connecting with mysql server. Another one is calling python subprocess lib..</p>
  
  <p>proxiScript = 'php5.6 -V'</p>
  
  <p>subprocess.Popen(proxiScript, shell=True, stdout=subprocess.PIPE)</p>
  
  <p>When I create a docker image, at first, I had problem with connecting to mysql [ I solve it with docker run --net host image_name ].</p>
  
  <p>The second problem is.. 
      <code>/bin/sh: 1: php5.6: not found</code></p>
  
  <p>Is there a way to build a standalone image where I'll include all of the needs I'm using in my project.. Maybe I could use host terminal, to making my image successfull ? </p>
  
  <p>Thank you .. </p>
  
  <h2>FROM app -></h2>
  
  <pre><code>`
  proxiScript = "php5.6 -v "
  proc=subprocess.Popen(proxiScript, shell=True, stdout=subprocess.PIPE)`
  </code></pre>
  
  <h2>Dockerfile</h2>
  
  <p><code>FROM python:3.7-slim
      WORKDIR /app
      COPY . /app
      RUN pip install --trusted-host pypi.python.org -r requirements.txt
      EXPOSE 80
      CMD ["python", "test.py"]</code></p>