Dockerfile 452 B

123456789101112
  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. # copy mongo shell scripts for migration
  6. COPY migration.js /opt/bin/
  7. COPY processor.js /opt/bin/
  8. WORKDIR /opt/bin/
  9. CMD /bin/mongosh ${MONGO_URI} migration.js