add Dockerfile
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
GIT_COMMIT_HASH := $(shell git rev-parse --short HEAD)
|
||||
DOCKER_REGISTRY = registry.crapts.org
|
||||
|
||||
all: run
|
||||
|
||||
run:
|
||||
uv run python -m simulation.app
|
||||
|
||||
docker/build:
|
||||
docker build -t simulation:latest .
|
||||
|
||||
docker/run: docker/build
|
||||
docker run -it --rm simulation
|
||||
|
||||
docker/push: docker/build
|
||||
docker tag simulation:latest $(DOCKER_REGISTRY)/simulation:latest
|
||||
docker tag simulation:latest $(DOCKER_REGISTRY)/simulation:$(GIT_COMMIT_HASH)
|
||||
docker push $(DOCKER_REGISTRY)/simulation:latest
|
||||
docker push $(DOCKER_REGISTRY)/simulation:$(GIT_COMMIT_HASH)
|
||||
Reference in New Issue
Block a user