Skip to content

Commit db3d5c5

Browse files
committed
Cleanup docker build log output
1 parent c072ef9 commit db3d5c5

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ FROM ruby:${BASE_IMAGE_TAG}
99
ENV LANG="C.UTF-8"
1010

1111
ARG RUBYGEMS_VERSION_ARG="" \
12-
BUNDLER_VERSION_ARG=""
12+
BUNDLER_VERSION_ARG="" \
13+
DEBIAN_FRONTEND=noninteractive
1314

1415
# Define dependencies base versions
1516
# Note: NodeJS is capped to 14.x on Jessie and 16.x on Stretch (due to `libc` requirements)
@@ -72,8 +73,8 @@ RUN <<INSTALL_DEPENDENCIES
7273
fi
7374
\
7475
# Detect Debian version
75-
apt-get update
76-
apt-get install --assume-yes --no-install-recommends --no-install-suggests --force-yes \
76+
apt-get -qq --yes update -o=Dpkg::Use-Pty=0
77+
apt-get -qq --yes install -o=Dpkg::Use-Pty=0 --no-install-recommends --no-install-suggests \
7778
apt-transport-https \
7879
lsb-release
7980

@@ -82,7 +83,7 @@ RUN <<INSTALL_DEPENDENCIES
8283
# Fix LetsEncrypt expired CA on older Debian releases
8384
case ${debianReleaseCodename} in
8485
jessie|buster|stretch)
85-
apt-get install --assume-yes --no-install-recommends --no-install-suggests --force-yes \
86+
apt-get -qq --yes install -o=Dpkg::Use-Pty=0 --no-install-recommends --no-install-suggests \
8687
ca-certificates \
8788
curl \
8889
$([ "${debianReleaseCodename}" = "jessie" ] && echo "libssl1.0.0")
@@ -117,8 +118,8 @@ RUN <<INSTALL_DEPENDENCIES
117118
esac | bash
118119
\
119120
# Install everything
120-
apt-get update
121-
apt-get install --assume-yes --no-install-recommends --no-install-suggests --force-yes \
121+
apt-get -qq --yes update -o=Dpkg::Use-Pty=0
122+
apt-get -qq --yes install -o=Dpkg::Use-Pty=0 --no-install-recommends --no-install-suggests \
122123
jq \
123124
nano \
124125
nodejs \
@@ -133,7 +134,7 @@ RUN <<INSTALL_DEPENDENCIES
133134
npm install --global yarn
134135
\
135136
# Install Heroku CLI (standalone tarball)
136-
curl -sSL curl https://cli-assets.heroku.com/install.sh | sh
137+
curl -sSL https://cli-assets.heroku.com/install.sh | sh
137138
esac
138139
INSTALL_DEPENDENCIES
139140

0 commit comments

Comments
 (0)