Skip to content

Commit 317f14f

Browse files
committed
Docker: remove git and rsync
Signed-off-by: Nicola Murino <[email protected]>
1 parent a768dac commit 317f14f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ RUN if [ "${DOWNLOAD_PLUGINS}" = "true" ]; then apt-get update && apt-get instal
3232

3333
FROM debian:trixie-slim
3434

35-
# Set to "true" to install jq and the optional git and rsync dependencies
35+
# Set to "true" to install jq
3636
ARG INSTALL_OPTIONAL_PACKAGES=false
3737

3838
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/*
3939

40-
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
40+
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
4141

4242
RUN mkdir -p /etc/sftpgo /var/lib/sftpgo /usr/share/sftpgo /srv/sftpgo/data /srv/sftpgo/backups
4343

Dockerfile.alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ RUN set -xe && \
2727

2828
FROM alpine:3.22
2929

30-
# Set to "true" to install jq and the optional git and rsync dependencies
30+
# Set to "true" to install jq
3131
ARG INSTALL_OPTIONAL_PACKAGES=false
3232

3333
RUN apk -U upgrade --no-cache && apk add --update --no-cache ca-certificates tzdata mailcap
3434

35-
RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache jq git rsync; fi
35+
RUN if [ "${INSTALL_OPTIONAL_PACKAGES}" = "true" ]; then apk add --update --no-cache jq; fi
3636

3737
RUN mkdir -p /etc/sftpgo /var/lib/sftpgo /usr/share/sftpgo /srv/sftpgo/data /srv/sftpgo/backups
3838

0 commit comments

Comments
 (0)