This commit is contained in:
yzqzss 2024-04-19 22:36:46 +08:00
parent c0fa91bddc
commit 0d0277c9c6

View File

@ -11,9 +11,7 @@ RUN set -eux; \
ca-certificates \
gnupg \
gosu \
hostname \
curl \
zstd \
htop
# import pub key
@ -41,8 +39,8 @@ RUN set -eux; \
mkdir -p /etc/mongo; \
chown mongodb:mongodb /etc/mongo
COPY --chown=root:root --chmod=0725 build/empty /etc/mongo/mongod.conf
COPY --chown=mongodb:mongodb --chmod=0400 build/empty /etc/mongo/mongo.keyfile
COPY build/empty /etc/mongo/mongod.conf
COPY build/empty /etc/mongo/mongo.keyfile
COPY build/start-mongo.sh /usr/bin/start-mongo.sh
# /var/lib/mongodb