idealista/java_role

Better way for Docker image creation

jnogol opened this issue · 1 comments

Prerequisites

Description

Now we're using Geerlingguy's Docker images as base image for our Java role's image in Dockerhub. Though they're perfectly fine, the way the images are built is not the best and leaves the container with Ansible and the Java Role installed, when is not necessary at all. So we'll look for creating images without Ansible on them and based on Debian Slim images.

Could

CMD ["sleep", "infinity"]

be used instead of:

CMD ["tail", "-f", "/dev/null"]

??