From 85ec8c95a54425a10a2a9d3ac49afc6ca7ee6598 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 4 Nov 2021 00:59:52 +0100 Subject: [PATCH] Add env vars to docker image --- Dockerfile | 3 +++ Makefile | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index d43e2c1..be0b175 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,9 @@ RUN pip install -r requirements.txt ARG GIT_COMMIT=unset ARG DISCORD_BOT_TOKEN=unset ARG YOUTUBE_COOKIES=unset +ARG DISCORD_LOG_CHANNEL_ID=unset +ARG DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=unset ENV DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} YOUTUBE_COOKIES=${YOUTUBE_COOKIES} GIT_COMMIT=${GIT_COMMIT} +ENV DISCORD_LOG_CHANNEL_ID=${DISCORD_LOG_CHANNEL_ID} DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=${DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP} CMD ["python", "src/bot.py"] diff --git a/Makefile b/Makefile index a74f4fe..7df08b4 100644 --- a/Makefile +++ b/Makefile @@ -10,5 +10,7 @@ build: --build-arg DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} \ --build-arg YOUTUBE_COOKIES=${YOUTUBE_COOKIES} \ --build-arg GIT_COMMIT=${GIT_COMMIT} \ + --build-arg DISCORD_LOG_CHANNEL_ID=${DISCORD_LOG_CHANNEL_ID} \ + --build-arg DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=${DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP} \ -t musicube:${GIT_COMMIT} -t musicube:latest \ .