Docker: remove rsync from default images

it's time to encourage people to switch to more modern alternatives like
rclone
This commit is contained in:
Nicola Murino
2021-09-27 11:34:11 +02:00
parent 4ab2e4088a
commit af8fa7ff81
3 changed files with 6 additions and 6 deletions

View File

@@ -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 the optional git dependency
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 git && rm -rf /var/lib/apt/lists/*; fi
RUN mkdir -p /etc/sftpgo /var/lib/sftpgo /usr/share/sftpgo /srv/sftpgo/data /srv/sftpgo/backups