Dockerfile 409 B

12345678910
  1. # uper v6 because old mongo shell caan't use negative lookbehind regexp
  2. # https://www.mongodb.com/community/forums/t/does-mongo-shell-support-negative-look-behind-assertion/7956
  3. # https://www.mongodb.com/docs/manual/release-notes/6.0-compatibility/#legacy-mongo-shell-removed
  4. FROM mongo:6.0
  5. WORKDIR /opt/bin/
  6. # refer migration.js and processor.js with bind mount
  7. CMD /bin/mongosh ${MONGO_URI} migration.js