Fixing latest restructuring and container oopsies

This commit is contained in:
Jarkko Toivanen 2024-12-12 00:13:47 +02:00
parent 9e427dc56f
commit 3bf3b486bf
Signed by: jt
GPG key ID: 9151B109B73ECAD5
4 changed files with 8 additions and 5 deletions

1
.gitignore vendored
View file

@ -0,0 +1 @@
data/

View file

@ -1,12 +1,14 @@
current_dir := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
data/:
mkdir data
chmod 777 data
podman-run:
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:
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