2021-03-05 20:40:49 +01:00
|
|
|
IMAGE := rust_api:latest
|
|
|
|
|
|
|
|
shell := /bin/bash
|
|
|
|
|
|
|
|
|
2021-03-05 20:06:17 +01:00
|
|
|
all: debug
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
# Builds
|
|
|
|
debug:
|
|
|
|
@ cargo build
|
|
|
|
.PHONY: debug
|
|
|
|
|
|
|
|
release:
|
|
|
|
@ cargo build --release
|
|
|
|
.PHONY: release
|
|
|
|
|
2021-03-05 20:40:49 +01:00
|
|
|
image: Dockerfile
|
|
|
|
@ DOCKER_BUILDKIT=1 docker build -t '$(IMAGE)' .
|
|
|
|
.PHONY: image
|
|
|
|
|
2021-03-05 20:06:17 +01:00
|
|
|
|
|
|
|
# Run
|
|
|
|
run:
|
|
|
|
@ cargo run
|
2021-03-05 20:40:49 +01:00
|
|
|
|