From 74cd18c86803fa823cfbdb431b197048cf5c0a62 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 17 Dec 2023 09:59:00 +0100 Subject: [PATCH] Add mongodb 7 --- .github/workflows/mongodb.yml | 1 + README.md | 2 ++ mongodb/7/Dockerfile | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 mongodb/7/Dockerfile diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 3a8fc4229..040ef1ee9 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -20,6 +20,7 @@ jobs: - 4 - 5 - 6 + - 7 steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/README.md b/README.md index ffee0668a..213d8bf8e 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:mongodb_5` * [`MongoDB 6`](/mongodb/6) * `ghcr.io/parkervcp/yolks:mongodb_6` + * [`MongoDB 7`](/mongodb/7) + * `ghcr.io/parkervcp/yolks:mongodb_7` ### [Mono](/mono) diff --git a/mongodb/7/Dockerfile b/mongodb/7/Dockerfile new file mode 100644 index 000000000..7773d415c --- /dev/null +++ b/mongodb/7/Dockerfile @@ -0,0 +1,19 @@ +# ---------------------------------- +# Environment: MongoDB +# ---------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH mongo:7-jammy + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt install -y netcat iproute2 \ + && useradd -d /home/container -m container -s /bin/bash + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"]