Sign inSign up

uwegerdes/baseimage

By uwegerdes

•Updated almost 2 years ago

Baseimage for my Docker containers

Image
0

1.4K

uwegerdes/baseimage repository overview

⁠Docker uwegerdes/baseimage

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.

⁠Install Docker

For Windows or Mac users: open https://www.docker.com/get-started⁠ in your browser.

⁠Linux users: install Docker with:
curl -sSL https://get.docker.com | sh
sudo adduser [yourusername] docker

⁠Building with settings

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}" \
	.

⁠Usage

Use this baseimage in other Dockerfiles:

FROM uwegerdes/baseimage

⁠Settings

The build-args are saved and used by all images depending on this image.

Tag summary

Content type

Image

Digest

sha256:2ddebdf7d…

Size

78.5 MB

Last updated

almost 2 years ago

docker pull uwegerdes/baseimage