@@ -1,6 +1,3 @@
FROM mongo:4.0
-CMD ["/run.sh"]
COPY mongo-healthcheck.sh /mongo-healthcheck.sh
-COPY run.sh /run.sh
-RUN chmod +x /mongo-healthcheck.sh \
- && chmod +x /run.sh
+RUN chmod +x /mongo-healthcheck.sh
@@ -1,8 +0,0 @@
-#!/bin/sh
-trap cleanup 0 1 2 3 6 15
-cleanup()
- {
- pkill -2 mongod
- }
-exec "/usr/bin/mongod" "$@" &
-wait