Files
singapore_rain_radar/Makefile
2024-08-18 20:09:36 +08:00

25 lines
579 B
Makefile

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