浏览代码

Docker: remove git and rsync

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 4 天之前
父节点
当前提交
317f14f869
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      Dockerfile
  2. 2 2
      Dockerfile.alpine

+ 2 - 2
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
 

+ 2 - 2
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