When creating a generic container is there a better way than running an endless ping or tail to keep the container from exiting?
FROM ubuntu
RUN apt-get update && \
apt-get install -y \
python-pip
VOLUME /flask
EXPOSE 8080:8080
CMD ["tail", "-f", "/dev/null"]
All other attempts at keeping a process running exit with code 0, after running docker-compose up