You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
539 B

  1. ## Note: alpine version >= 3.9 is required to get mongodb version 4
  2. ## is a simple copy of alpine:3.9
  3. FROM docker.0k.io/alpine:3.9 as common
  4. ## mongodb-tools is only required because we expect and use mongodump
  5. ## XXXvlab: bash is only required by mongo-backup, we could probably only use sh
  6. RUN apk add --no-cache mongodb mongodb-tools bash
  7. RUN mkdir -p /var/lib/mongod
  8. RUN chown -R mongodb:mongodb /var/lib/mongod
  9. VOLUME ["/var/lib/mongodb"]
  10. EXPOSE 27017 28017
  11. USER mongodb
  12. ENTRYPOINT [ "mongod", "--config", "/etc/mongod.conf" ]