From f3499dd3e470df36195261918991df0994d7b392 Mon Sep 17 00:00:00 2001 From: Enrico Ghidoni Date: Tue, 26 Mar 2024 01:32:18 +0100 Subject: [PATCH] Use locally checked out repo --- .github/workflows/docker-image.yml | 6 ++++-- Dockerfile | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1bbc56e..3af3ccc 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 \ No newline at end of file + run: docker build . --file owlbot-repo/Dockerfile --tag owlbot:1 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 1fdd0e9..e1c0ecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file