Fixed install of mongodb-org-shell and mongodb-org-tools

This commit is contained in:
cytopia
2022-03-18 12:19:00 +01:00
parent 456447070a
commit b352de6939
15 changed files with 211 additions and 28 deletions

View File

@@ -2,6 +2,7 @@
FROM devilbox/php-fpm:8.1-prod
MAINTAINER "cytopia" <cytopia@everythingcli.org>
ARG ARCH
###
### Labels
@@ -103,8 +104,6 @@ RUN set -eux \
libyaml-dev \
locales \
make \
mongodb-org-shell \
mongodb-org-tools \
moreutils \
mariadb-client \
mupdf \
@@ -145,6 +144,20 @@ RUN set -eux \
&& (find /usr/local/sbin -type f -print0 | xargs -n1 -0 strip --strip-all -p 2>/dev/null || true)
###
### Instal Architecture Dependent software
###
RUN set -eux \
&& if [ "${ARCH}" = "linux/amd64" ]; \
DEBIAN_FRONTEND=noninteractive apt-get update -q \
&& DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends --no-install-suggests \
mongodb-org-shell \
mongodb-org-tools; \
fi \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -q -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false apt-utils \
&& rm -rf /var/lib/apt/lists/* \
###
### Install custom software
###