Skip to content

Commit

Permalink
Use locally checked out repo
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-ghidoni committed Mar 26, 2024
1 parent 1085dab commit f3499dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: 'owlbot-repo'
- name: Build the Docker image
run: docker build . --file Dockerfile --tag owlbot:1
run: docker build . --file owlbot-repo/Dockerfile --tag owlbot:1
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM alpine:3.19

RUN apk add git
COPY owlbot-repo /owlbot

WORKDIR owlbot

RUN apk add --no-cache python3 py3-pip
RUN git clone https://github.com/CntoDev/discord-owlbot
RUN cd discord-owlbot && pip install --break-system-packages -r requirements.txt
RUN crontab discord-owlbot/crontab.txt
RUN pip install --break-system-packages -r requirements.txt
RUN crontab crontab.txt


CMD ["sh"]

0 comments on commit f3499dd

Please sign in to comment.