Skip to content

Instantly share code, notes, and snippets.

@longfellowone
Created April 22, 2019 17:15
Show Gist options
  • Save longfellowone/ab166a5214da567c40360b373e021057 to your computer and use it in GitHub Desktop.
Save longfellowone/ab166a5214da567c40360b373e021057 to your computer and use it in GitHub Desktop.
WDIR := /go/src/github.com/Pisush/tensorflow-and-go
DIR := ${CURDIR}:${WDIR}
DOCKER_IMAGE := dahernan/tensorflow-and-go
login:
docker run -i -v $(DIR) -w $(WDIR) --entrypoint=/bin/bash -t $(DOCKER_IMAGE)
dockerbuild:
docker build -f Dockerfile -t $(DOCKER_IMAGE) .
dockerpush:
docker push $(DOCKER_IMAGE):latest
PHONY: dockerbuild login dockerpush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment