goredir/Makefile
Mans Ziesel 7780311ea6
All checks were successful
Build docker container / Build image (push) Successful in 1m4s
first commit
2024-09-06 19:45:32 +02:00

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