title: Docker combine curl and php containers
body: <p>I've just started to learn how to use Docker. For learning purposes i'm trying to create webserver app (nginx+php+mysql) and now i have some questions.</p>
  
  <p>I want to use php with my own build of curl (with http2 support etc.). I built image but can i use it as separate container and let container with php use curl library from curl's container (using docker compose) or i can only use it as base image for php container?</p>
  
  <p>And second question - if i can use it as separate container, how to let this container to listen for commands (now it stops after starting). I know that i should set ENTRYPOINT but what should it be?</p>