From 39bd8ef0125b78b05a52ff71ba0d4627fc6358e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Honorez?= Date: Mon, 1 Jan 2024 19:28:54 +0100 Subject: [PATCH] change the way we get the image --- Dockerfile | 4 +++- update_and_run.sh | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 update_and_run.sh diff --git a/Dockerfile b/Dockerfile index ca3c0b1..7f02bcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,6 @@ RUN apt-get update && apt-get install -y git RUN git clone http://192.168.1.25:8124/zep/Substack_JV.git /app WORKDIR /app RUN pip install -r requirements.txt -CMD ["python", "./Post_RSS_on_SubStack.py"] \ No newline at end of file +COPY update_and_run.sh /app +RUN chmod +x /app/update_and_run.sh +CMD ["./update_and_run.sh"] \ No newline at end of file diff --git a/update_and_run.sh b/update_and_run.sh new file mode 100644 index 0000000..0cd8edd --- /dev/null +++ b/update_and_run.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Pull the latest changes +git pull origin main + +# Run your Python script +python Post_RSS_on_SubStack.py \ No newline at end of file