change the way we get the image
This commit is contained in:
@@ -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
7
update_and_run.sh
Normal 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
|
||||||
Reference in New Issue
Block a user