diff --git a/Dockerfile b/Dockerfile index 8fcd61cb..2ecbe3b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,12 +25,12 @@ RUN set -xe && \ FROM debian:bullseye-slim -# Set to "true" to install the optional git and rsync dependencies +# Set to "true" to install jq and the optional git and rsync dependencies ARG INSTALL_OPTIONAL_PACKAGES=false RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates media-types && rm -rf /var/lib/apt/lists/* -RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apt-get update && apt-get install --no-install-recommends -y git rsync && rm -rf /var/lib/apt/lists/*; fi +RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apt-get update && apt-get install --no-install-recommends -y jq git rsync && rm -rf /var/lib/apt/lists/*; fi RUN mkdir -p /etc/sftpgo /var/lib/sftpgo /usr/share/sftpgo /srv/sftpgo/data /srv/sftpgo/backups diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 157fdf2c..26db5d2d 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -28,12 +28,12 @@ RUN set -xe && \ FROM alpine:3.15 -# Set to "true" to install the optional git and rsync dependencies +# Set to "true" to install jq and the optional git and rsync dependencies ARG INSTALL_OPTIONAL_PACKAGES=false RUN apk add --update --no-cache ca-certificates tzdata mailcap -RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache git rsync; fi +RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache jq git rsync; fi # set up nsswitch.conf for Go's "netgo" implementation # https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-424546457