fork 0k-charms
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.

17 lines
369 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. RUN apk add --no-cache mongodb
  5. RUN mkdir -p /var/lib/mongod
  6. RUN chown -R mongodb:mongodb /var/lib/mongod
  7. VOLUME ["/var/lib/mongodb"]
  8. EXPOSE 27017 28017
  9. USER mongodb
  10. ENTRYPOINT [ "mongod", "--config", "/etc/mongod.conf" ]