Skip to content

Commit 3f15c39

Browse files
committed
Dockerfile containg script that every 5 min is called
1 parent 5c0f0de commit 3f15c39

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ RUN pip3 install -r requirements.txt
99

1010
COPY . .
1111

12-
CMD [ "python3", "import_recent_changes.py"]
12+
CMD [ "./script.sh" ]

Diff for: script.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
while true
2+
do
3+
pkill -f import_recent_changes.py &
4+
python import_recent_changes.py &
5+
sleep 300
6+
done

0 commit comments

Comments
 (0)