Skip to content

Commit ebfa283

Browse files
authored
Specify --no-install-recommends on package installs to minimize image
1 parent f14017d commit ebfa283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile.rsync

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
FROM ubuntu:focal AS build
99

1010
# Install build dependencies
11-
RUN apt-get update && apt-get install -y \
11+
RUN apt-get update && apt-get install --no-install-recommends -y \
1212
gcc \
1313
g++ \
1414
gawk \
@@ -49,7 +49,7 @@ WORKDIR /
4949
FROM ubuntu:focal AS runtime
5050

5151
# Install runtime dependencies - bash, git, OpenSSH 5.6 or newer, and jq v1.5 or newer.
52-
RUN apt-get update && apt-get install -y \
52+
RUN apt-get update && apt-get install --no-install-recommends -y \
5353
bash \
5454
git \
5555
openssh-client \

0 commit comments

Comments
 (0)