Skip to content

Commit

Permalink
Clean-up directories for use inside Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-ghidoni committed Mar 26, 2024
1 parent a40df63 commit 46d6963
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM alpine:3.19

COPY owlbot-repo /owlbot

WORKDIR owlbot
ADD . /owlbot
WORKDIR /owlbot

RUN apk add --no-cache python3 py3-pip
RUN pip install --break-system-packages -r requirements.txt
RUN crontab crontab.txt

RUN crontab crontab.txt

CMD ["sh"]
CMD ["crond", "-f"]
2 changes: 1 addition & 1 deletion crontab.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
35 19 * * 2,5 bash /discord-owlbot/op-reminder.sh >> /discord-owlbot/log 2>&1
35 19 * * 2,5 sh /owlbot/op-reminder.sh
4 changes: 1 addition & 3 deletions op-reminder.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
source ~/miniconda3/etc/profile.d/conda.sh
conda activate discord-owlbot
python /home/carpenoctem/discord-owlbot/op-start-reminder.py
python /owlbot/op-start-reminder.py > /owlbot/cron.log 2>&1

0 comments on commit 46d6963

Please sign in to comment.