certificate-api/Makefile

21 lines
390 B
Makefile

## Usage:
go_files := $(wildcard cmd/*.go)
path := $(shell pwd)
all: clean build
clean:
@-rm -rf ./build
build:
@-mkdir ./build
go build -v -ldflags="-s -w" -o build/certificateapi ${go_files}
build-docker:
docker build -t docker.libraryofcode.org/engineering/certificate-api/master .
run-docker:
docker run --rm -it docker.libraryofcode.org/engineering/certificate-api/master