diff --git a/Dockerfile b/Dockerfile index 0fda7346..ba2b5742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,12 +32,12 @@ RUN if [ "${DOWNLOAD_PLUGINS}" = "true" ]; then apt-get update && apt-get instal FROM debian:trixie-slim -# Set to "true" to install jq and the optional git and rsync dependencies +# Set to "true" to install jq ARG INSTALL_OPTIONAL_PACKAGES=false RUN apt-get update && apt-get -y upgrade && 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 jq 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 && 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 7a1e2e9f..aac41ad5 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -27,12 +27,12 @@ RUN set -xe && \ FROM alpine:3.22 -# Set to "true" to install jq and the optional git and rsync dependencies +# Set to "true" to install jq ARG INSTALL_OPTIONAL_PACKAGES=false RUN apk -U upgrade --no-cache && apk add --update --no-cache ca-certificates tzdata mailcap -RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache jq git rsync; fi +RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache jq; fi RUN mkdir -p /etc/sftpgo /var/lib/sftpgo /usr/share/sftpgo /srv/sftpgo/data /srv/sftpgo/backups