From 79bbfd14ecb634b832f7b03e7ba1afbc346c9aee Mon Sep 17 00:00:00 2001 From: Parker Date: Wed, 26 Jun 2024 18:56:37 -0500 Subject: [PATCH] Add support for Docker! --- .dockerignore | 4 ++++ docker-compose.yaml | 19 +++++++++++++++++++ dockerfile | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .dockerignore create mode 100644 docker-compose.yaml create mode 100644 dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e62392f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +config.ini +__pycache__ +count.db +notes.txt \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..69953c1 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,19 @@ +services: + guava: + container_name: guava + image: ghcr.io/packetparker/guava:latest + environment: + - TOKEN= + - BOT_COLOR= + - BOT_INVITE_LINK= + - FEEDBACK_CHANNEL_ID= + - BUG_CHANNEL_ID= + - SPOTIFY_CLIENT_ID= + - SPOTIFY_CLIENT_SECRET= + - OPENAI_API_KEY= + - LAVALINK_HOST= + - LAVALINK_PORT= + - LAVALINK_PASSWORD= + volumes: + - /path/on/system:/data + restart: on-failure \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..398d972 --- /dev/null +++ b/dockerfile @@ -0,0 +1,13 @@ +FROM python:3.10-slim + +LABEL org.opencontainers.image.source = "https://github.com/PacketParker/Guava" + +MAINTAINER "parker " + +WORKDIR / + +COPY . . +RUN pip install -r requirements.txt + +ENTRYPOINT [ "python" ] +CMD [ "-u", "code/bot.py" ] \ No newline at end of file