Files
singapore_rain_radar/Makefile
2024-08-18 19:26:03 +08:00

24 lines
543 B
Makefile

APP_NAME = "sg_rain_radar"
OUTPUT_DIR = /var/www/html/other/sg_rain_radar/
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