Spotter-VM/lxc-services/mongodb/image

26 lines
667 B
Plaintext
Raw Normal View History

IMAGE mongodb_4.4.3-210123
FROM debian10_10.7.0-210111
RUN EOF
# Install build dependencies
apt-get update
apt-get -y install gnupg wget
# Configure mongodb repo
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
echo 'deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main' >/etc/apt/sources.list.d/mongodb-org-4.4.list
# Install mongodb
apt-get -y update
apt-get install -y mongodb-org-server mongodb-org-shell mongodb-org-tools
# Cleanup
apt-get purge -y --autoremove gnupg wget
apt-get -y clean
EOF
COPY image.d
USER mongodb
CMD /usr/bin/mongod --config /etc/mongod.conf