# Build new image As an example we build a new version of the `leap:jessie` base image: REGISTRY="0xacab.org:4567" REGISTRY_PATH="${REGISTRY}/leap/gitlab-buildpackage" IMAGE='jessie_amd64' cd $IMAGE docker ${DOCKER_OPTS} build ${DOCKER_BUILD_OPTS} -t ${REGISTRY_PATH}:${IMAGE} . ## Package upgrades Sometimes you need to upgrade packages in the base image, so this is not done on every build, i.e. when security updates are available. Disable caching and build new images with: export DOCKER_BUILD_OPTS="--no-cache" ## Push images docker login --username=varac 0xacab.org:4567 docker ${DOCKER_OPTS} push ${REGISTRY_PATH}:${IMAGE}