change the way we get the image

This commit is contained in:
Gaël Honorez
2024-01-01 19:28:54 +01:00
parent be8d49415f
commit 39bd8ef012
2 changed files with 10 additions and 1 deletions

View File

@@ -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 RUN git clone http://192.168.1.25:8124/zep/Substack_JV.git /app
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
CMD ["python", "./Post_RSS_on_SubStack.py"] COPY update_and_run.sh /app
RUN chmod +x /app/update_and_run.sh
CMD ["./update_and_run.sh"]

7
update_and_run.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Pull the latest changes
git pull origin main
# Run your Python script
python Post_RSS_on_SubStack.py