3 As an example we build a new version of the `leap:jessie` base image:
5 REGISTRY="0xacab.org:4567"
6 REGISTRY_PATH="${REGISTRY}/leap/gitlab-buildpackage"
10 docker ${DOCKER_OPTS} build ${DOCKER_BUILD_OPTS} -t ${REGISTRY_PATH}:${IMAGE} .
14 Sometimes you need to upgrade packages in the base image,
15 so this is not done on every build, i.e. when security updates
17 Disable caching and build new images with:
19 export DOCKER_BUILD_OPTS="--no-cache"
23 docker login --username=varac 0xacab.org:4567
24 docker ${DOCKER_OPTS} push ${REGISTRY_PATH}:${IMAGE}