FROM mongo:latest #RUN sed 's/127.0.0.1/0.0.0.0/' -i /etc/mongod.conf #RUN mkdir /docker-entrypoint-initdb.d COPY ./create_user.sh /docker-entrypoint-initdb.d/create_user.sh COPY ./create_test_user.sh /docker-entrypoint-initdb.d/create_test_user.sh RUN set -e \ && chmod 755 /docker-entrypoint-initdb.d/create_user.sh \ && chmod 755 /docker-entrypoint-initdb.d/create_test_user.sh COPY ./docker-entrypoint.sh /entrypoint.sh CMD ["mongod","--auth"]