Dockerfile 264 B

123456789101112
  1. FROM mongo
  2. ENV WORKSPACE /usr/local/work
  3. ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
  4. ENV INSTALL_MONGO_SHELL setup.sh
  5. RUN mkdir -p $WORKSPACE
  6. COPY ./data/* $WORKSPACE/
  7. COPY ./$INSTALL_MONGO_SHELL $AUTO_RUN_DIR/
  8. RUN chmod a+x $AUTO_RUN_DIR/$INSTALL_MONGO_SHELL