diff --git a/.woodpecker/docker.yml b/.woodpecker/docker.yml index e8ba8d5..ec49e3c 100644 --- a/.woodpecker/docker.yml +++ b/.woodpecker/docker.yml @@ -3,7 +3,9 @@ pipeline: secrets: [docker_username, docker_password] image: woodpeckerci/plugin-docker-buildx settings: - repo: dentaku/vollmond + context: bot + # dockerfile: bot/Dockerfile + repo: dentaku/vollmond-bot tag: latest auto-tag: true platforms: [linux/amd64, linux/arm64] \ No newline at end of file diff --git a/bot/Dockerfile b/bot/Dockerfile index 6efd40d..991e9ce 100644 --- a/bot/Dockerfile +++ b/bot/Dockerfile @@ -1 +1,9 @@ -# pip3 install Mastodon.py \ No newline at end of file +FROM python:3 +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python", "./testbot.py" ] \ No newline at end of file diff --git a/bot/requirements.txt b/bot/requirements.txt new file mode 100644 index 0000000..b033626 --- /dev/null +++ b/bot/requirements.txt @@ -0,0 +1 @@ +Mastodon.py \ No newline at end of file