FROM mongo:4.0 #ENTRYPOINT ["/docker-entrypoint.sh"] CMD ["/docker-entrypoint.sh"] COPY mongo-healthcheck.sh /mongo-healthcheck.sh COPY docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /mongo-healthcheck.sh \ && chmod +x /docker-entrypoint.sh