Added Docker build files

This commit is contained in:
Jef Roosens 2021-03-05 20:40:49 +01:00
parent f69e489f28
commit b49a01ab03
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
3 changed files with 33 additions and 0 deletions

View file

@ -1,3 +1,8 @@
IMAGE := rust_api:latest
shell := /bin/bash
all: debug
.PHONY: all
@ -10,7 +15,12 @@ release:
@ cargo build --release
.PHONY: release
image: Dockerfile
@ DOCKER_BUILDKIT=1 docker build -t '$(IMAGE)' .
.PHONY: image
# Run
run:
@ cargo run