youtube-dl-docker/Makefile

29 lines
396 B
Makefile

export DOCKER_HOST := ssh://root@lstor1
default: deploy
deploy:
make build_image
make stop
make run
build_image:
docker build -t sneak/ytdlp .
stop:
-docker stop sneak-ytdlp
-docker rm -f sneak-ytdlp
run: stop
docker run \
-d \
--name sneak-ytdlp \
-v /srv/lstor1/warez/youtube:/output \
--restart unless-stopped \
sneak/ytdlp
make logs
logs:
docker logs -f sneak-ytdlp