Skip to content

Commit a01ea91

Browse files
committed
chore: workaround to fix dockle scan warning
Dockle scans fail with an unrelated warning on dist-upgrade if you use both apt & apt-get in the same RUN step. As a workaround, let's use only apt-get. Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent 23e1fa6 commit a01ea91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Debian/Dockerfile.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ COPY requirements.txt /
3131
# Install additional extensions
3232
RUN set -xe; \
3333
apt-get update; \
34-
if apt list --upgradable 2>/dev/null | grep -q '^postgres'; then \
34+
if apt-get -s upgrade | grep "^Inst postgres"; then \
3535
echo "ERROR: Upgradable postgres packages found!"; \
36-
apt list --upgradable 2>/dev/null | grep '^postgres'; \
36+
apt-get -s upgrade | grep "^Inst postgres"; \
3737
exit 1; \
3838
fi; \
3939
apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)