Docker Community Forums

Share and learn in the Docker community.

Improve this Dockerfile

My Dockerfile looks like this
FROM debian

RUN apt-get update &&
apt-get install -y autoconf build-essential git zlib1g-dev &&
rm -rf /var/lib/apt/lists/*

Not sure what you’d like to improve, looks alright to me, though it should be noted that using alpine for a base frequently results in much smaller images and I find that apk installs packages faster than apt-get generally…

1 Like