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