sip-tarpit/Makefile

27 lines
517 B
Makefile

NAME = sip-tarpit
VERSION = 0.0.1
all:
cargo build
static:
CARGO_BUILD_TARGET=x86_64-unknown-linux-musl cargo build --release
check-static:
ldd target/x86_64-unknown-linux-musl/release/sip-tarpit
release:
cargo build --release
clean:
sudo rm -rf target
docker-build:
docker build --no-cache -t $(NAME):$(VERSION) .
docker-run:
docker run --rm --name $(NAME) \
--expose 5060/udp -p 5060:5060/udp \
--mount type=bind,source="$(PWD)"/config.toml,target=/app/config.toml,readonly \
$(NAME):$(VERSION)