goredir/Makefile

26 lines
392 B
Makefile
Raw Permalink Normal View History

2024-09-06 17:45:20 +00:00
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