14 lines
425 B
Makefile
14 lines
425 B
Makefile
current_dir := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
|
|
|
|
data/: FORCE
|
|
podman-run: data/
|
|
podman build -t snuffler/snuffler-web .
|
|
podman run -v ./data/:/var/www/html/data/ -p 8080:80 localhost/snuffler/snuffler-web:dev
|
|
|
|
docker-run: data/
|
|
docker build -t snuffler/snuffler-web:dev .
|
|
docker run -v $(current_dir)data/:/var/www/html/data/ -p 8080:80 snuffler/snuffler-web:dev
|
|
|
|
FORCE:
|
|
cp -r src/data ./
|
|
chmod 777 data
|