diff options
-rwxr-xr-x | Dockerfile | 3 | ||||
-rwxr-xr-x | docker-compose.yml | 1 | ||||
-rwxr-xr-x | readme.md | 6 | ||||
-rwxr-xr-x | requirements.txt | 5 |
4 files changed, 11 insertions, 4 deletions
@@ -1,10 +1,11 @@ FROM debian:latest MAINTAINER Eden Attenborough "eddie.atten.ea29@gmail.com" -RUN apt-get update -y +RUN apt-get update --allow-releaseinfo-change RUN apt-get install -y tzdata python3-pip build-essential pkg-config cron libjpeg-dev zlib1g-dev libfreetype6-dev COPY . /app WORKDIR /app COPY crontab /etc/cron.d/oad-crontab RUN chmod 0644 /etc/cron.d/oad-crontab && crontab /etc/cron.d/oad-crontab +ARG PIP_ONLY_BINARY=cmake RUN pip3 install -r requirements.txt ENTRYPOINT ["cron", "-f"] diff --git a/docker-compose.yml b/docker-compose.yml index ac1e4a0..bcb7354 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,7 @@ version: '3' services: cron: + container_name: yaoi-communism build: context: . dockerfile: Dockerfile @@ -18,7 +18,7 @@ Designed to be run once an hour using a cron job. - `python3 bot.py`
-## running in docker
+## Running in docker
- `sudo docker-compose build`
@@ -26,4 +26,8 @@ Designed to be run once an hour using a cron job. Should do everything by itself if you set the config file correctly
+To manually run (for testing):
+
+`sudo docker run -it --entrypoint python3 --rm jwansek/yaoi-communism /app/bot.py`
+

diff --git a/requirements.txt b/requirements.txt index 6dddbb1..92fffd3 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,10 @@ +cmake<3.23 Shapely==1.7.1 colorthief==0.2.1 -opencv_python_headless +opencv_python_headless==4.5.4.60 requests==2.18.4 lxml==4.5.2 dataclasses -pillow==7.2.0 +pillow twython==3.8.2 pymysql |