Commit 7e492589 authored by Boris Quiroz's avatar Boris Quiroz

makefile to build, push and run containers

parent e6e39379
include make_env
NS ?= boris
TAG ?= latest
IMAGE_NAME = pwgen-web
.PHONY: build push run login
build:
docker build -t $(NS)/$(IMAGE_NAME):$(TAG) -f Dockerfile .
push:
docker push $(NS)/$(IMAGE_NAME):$(TAG)
run:
docker run -P -d --name $(IMAGE_NAME)-dev $(NS)/$(IMAGE_NAME):$(TAG)
docker logs --follow $(IMAGE_NAME)-dev
login:
docker login
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment