From 9730f26cb67d081b11b5e3f217271cab510b8131 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:16:41 +0000 Subject: [PATCH] add detached script, change pip pkgs --- requirements.txt | 2 +- run.sh | 2 +- run_detached.sh | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 run_detached.sh diff --git a/requirements.txt b/requirements.txt index 72ed794..b687e64 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ pytz git+https://github.com/muskit/tweety.git tweepy tweet-capture -opencv-python \ No newline at end of file +opencv-python-headless diff --git a/run.sh b/run.sh index 62e56d9..f4309ea 100755 --- a/run.sh +++ b/run.sh @@ -2,4 +2,4 @@ mkdir -p run docker build -t nijiholo_bot . -docker run -v ./run:/app/run -it nijiholo_bot \ No newline at end of file +docker run -v ./run:/app/run --name bot -it nijiholo_bot diff --git a/run_detached.sh b/run_detached.sh new file mode 100755 index 0000000..13ffbf1 --- /dev/null +++ b/run_detached.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +mkdir -p run +docker build -t nijiholo_bot . +docker run -v ./run:/app/run --name bot -d nijiholo_bot