Mans Ziesel
7780311ea6
All checks were successful
Build docker container / Build image (push) Successful in 1m4s
26 lines
392 B
Makefile
26 lines
392 B
Makefile
IMAGE_NAME=goredir
|
|
CONTAINER_NAME=goredir
|
|
|
|
build: *.go
|
|
mkdir -p build
|
|
go build -o build/goredir main.go
|
|
|
|
run: build
|
|
./build/goredir
|
|
|
|
clean:
|
|
rm -r build
|
|
|
|
package:
|
|
|
|
docker-build:
|
|
docker build -t $(IMAGE_NAME) .
|
|
|
|
docker-run:
|
|
docker run -d -p 8880:8080 --name $(CONTAINER_NAME) $(IMAGE_NAME)
|
|
|
|
docker-clean:
|
|
docker rmi $(IMAGE_NAME)
|
|
|
|
.PHONY: clean run docker-run docker-build docker-clean
|