Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Last active May 27, 2016 18:12
Show Gist options
  • Save BlackMaria/88271577a5fd6b236ebd4bad64ce0cca to your computer and use it in GitHub Desktop.
Save BlackMaria/88271577a5fd6b236ebd4bad64ce0cca to your computer and use it in GitHub Desktop.
EPOCH=$(shell date +%s )
NAME=application
build:
docker build -t ${NAME}:${EPOCH} .
@docker rmi ${NAME}:latest >& /dev/null || echo ${NAME}:latest created
docker tag ${NAME}:${EPOCH} ${NAME}:latest
export:
docker save ${NAME}:latest > ${NAME}:latest.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment