Baseimage for my Docker containers
1.4K
A common base image for my Dockerfiles to save some disk space and build time.
The base for this image is ubuntu:latest but it might change in the future.
For Windows or Mac users: open https://www.docker.com/get-started in your browser.
curl -sSL https://get.docker.com | sh
sudo adduser [yourusername] docker
If you want to build it with other settings load the Dockerfile in an empty directory, perhaps edit it to your needs.
If you have an apt-cacher-ng proxy server (try uwegerdes/apt-cacher-ng) you should check hostname -i or change it to an address available in your local networt (not localhost) or omit the APT_PROXY line in the command above.
There is also a timezone parameter for the baseimage, here set to Europe/Berlin.
Build the image with (mind the dot in the last line):
$ docker build -t uwegerdes/baseimage \
--build-arg APT_PROXY="http://$(hostname -i):3142" \
--build-arg TZ="Europe/Berlin" \
--build-arg TERM="${TERM}" \
.
Use this baseimage in other Dockerfiles:
FROM uwegerdes/baseimage
The build-args are saved and used by all images depending on this image.
Content type
Image
Digest
sha256:2ddebdf7d…
Size
78.5 MB
Last updated
almost 2 years ago
docker pull uwegerdes/baseimage