Do not use apt as it is meant to be an end-user tool, use apt-get or apt-cache instead
1FROM httpd
2
3RUN apt update > /dev/null 2>&1
4RUN apt install -y curl postgresql-client redis ncat mariadb-client > /dev/null 2>&1 5
6COPY ./scripts/ /usr/scripts/
7
Do not use apt as it is meant to be an end-user tool, use apt-get or apt-cache instead
1FROM httpd
2
3RUN apt update > /dev/null 2>&1 4RUN apt install -y curl postgresql-client redis ncat mariadb-client > /dev/null 2>&1
5
6COPY ./scripts/ /usr/scripts/
Description
Do not use apt
as it is meant to be an end-user tool.
apt
is discouraged by the linux distributions as an unattended tool as its interface may suffer changes between versions. Better use the more stable apt-get
and apt-cache
Bad Practice
FROM debian:buster
RUN apt install curl=1.1.0
Recommended
FROM debian:buster
RUN apt-get install curl=1.1.0