File size: 483 Bytes
1f0b832
 
 
 
 
 
 
 
d9387b6
 
 
 
1f0b832
 
 
 
d9387b6
 
 
 
 
 
 
 
1f0b832
d9387b6
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: lint
lint:  # Lints our code.
	python -m pylint ./

.PHONY: black
black:  # Formats our code.
	python -m black ./

.PHONY: refactor
refactor:  # Refactor our code.
    black lint

.PHONY: test
test:  # Runs tests.
	python -m pytest tests

# Set the image name
IMAGE_NAME := iris-classification-lambda
TAG := latest

# Targets
.PHONY: docker-build
docker-build:
	docker build -t $(IMAGE_NAME):$(TAG) .

.PHONY: docker-run
docker-run:
	docker run -it --rm $(IMAGE_NAME):$(TAG)