youtube-dl-docker/Makefile

33 lines
474 B
Makefile
Raw Normal View History

2022-11-02 14:53:24 +00:00
export DOCKER_HOST := ssh://root@lstor1
2022-11-09 02:57:25 +00:00
.PHONY: default deploy build_image restart stop run logs
2022-11-02 15:38:49 +00:00
default: deploy
deploy:
make build_image
make stop
2022-11-09 02:57:25 +00:00
make start
2019-07-22 02:02:17 +00:00
build_image:
2022-11-02 14:53:24 +00:00
docker build -t sneak/ytdlp .
2022-11-09 02:57:25 +00:00
restart:
make stop
make start
2022-11-02 14:53:24 +00:00
stop:
-docker stop sneak-ytdlp
-docker rm -f sneak-ytdlp
2022-11-09 02:57:25 +00:00
start:
2022-11-02 14:53:24 +00:00
docker run \
-d \
--name sneak-ytdlp \
-v /srv/lstor1/warez/youtube:/output \
--restart unless-stopped \
sneak/ytdlp
logs:
docker logs -f sneak-ytdlp