Skip to content

Instantly share code, notes, and snippets.

@gregohardy
Last active June 8, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregohardy/2e5713d7669fc003f55faff5365c18d6 to your computer and use it in GitHub Desktop.
Save gregohardy/2e5713d7669fc003f55faff5365c18d6 to your computer and use it in GitHub Desktop.
build-docker-linux: OS_TYPE = linux
build-docker-linux: build-docker
build-docker:
@if [ -z "$(IMAGE)" ];then\
docker build -t $(DOCKER_IMAGE) --build-arg targetos=$(OS_TYPE) .;\
else\
docker build -t $(IMAGE) --build-arg targetos=$(OS_TYPE) .;\
fi
@gregohardy
Copy link
Author

I can never remember the syntax. Hope this helps...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment