mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 10:30:17 +01:00
24 lines
519 B
Makefile
24 lines
519 B
Makefile
APP_NAME = "sg_rain_radar"
|
|
OUTPUT_DIR = $(PWD)/out
|
|
|
|
build:
|
|
docker build . -t $(APP_NAME)
|
|
|
|
debug:build
|
|
mkdir -p $(OUTPUT_DIR)
|
|
mkdir -p $(PWD)/images/raw
|
|
mkdir -p $(PWD)/images/final
|
|
docker run \
|
|
-it \
|
|
--mount type=bind,source=$(PWD)/images,target=/home/node/app/images \
|
|
--mount type=bind,source=$(OUTPUT_DIR),target=/home/node/app/out \
|
|
$(APP_NAME)
|
|
|
|
run:build
|
|
mkdir -p $(OUTPUT_DIR)
|
|
docker run \
|
|
-d \
|
|
--mount type=bind,source=$(OUTPUT_DIR),target=/home/node/app/out \
|
|
$(APP_NAME)
|
|
|
|
.PHONY: build debug run |