Use the
-y
switch to avoid manual input apt-get -y install <package>
17# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.3
18# There are some warnings (in red) that show up during the build. You can hide
19# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive
20RUN apt-get update && apt-get install python3 python-software-properties software-properties-common postgresql postgresql-client postgresql-contrib wget curl bash21
22RUN ln -sfv /bin/bash /bin/sh
23
Description
Without the -y
/--assume-yes
option it might be possible for the build to break without human intervention.
Bad Practice
FROM debian:buster
RUN apt-get install python=2.7
Recommended
FROM debian:buster
RUN apt-get install -y python=2.7