33 lines
		
	
	
		
			333 B
		
	
	
	
		
			Makefile
		
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			333 B
		
	
	
	
		
			Makefile
		
	
	
| IMAGE := rust_api:latest
 | |
| 
 | |
| shell := /bin/bash
 | |
| 
 | |
| 
 | |
| all: debug
 | |
| .PHONY: all
 | |
| 
 | |
| # Builds
 | |
| debug:
 | |
| 	@ cargo build
 | |
| .PHONY: debug
 | |
| 
 | |
| release:
 | |
| 	@ cargo build --release
 | |
| .PHONY: release
 | |
| 
 | |
| image: Dockerfile
 | |
| 	@ DOCKER_BUILDKIT=1 docker build -t '$(IMAGE)' .
 | |
| .PHONY: image
 | |
| 
 | |
| 
 | |
| # Run
 | |
| run:
 | |
| 	@ cargo run
 | |
| .PHONY: run
 | |
| 
 | |
| 
 | |
| # Testing
 | |
| test:
 | |
| 	@ cargo test
 | |
| .PHONY: test
 |