2021-09-25 20:08:42 +00:00
|
|
|
FROM python:3.9-slim-buster
|
|
|
|
|
|
|
|
WORKDIR /musicube
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN apt-get -y update
|
|
|
|
RUN apt-get install -y ffmpeg
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
ARG GIT_COMMIT=unset
|
|
|
|
ARG DISCORD_BOT_TOKEN=unset
|
2021-09-25 20:48:16 +00:00
|
|
|
ARG YOUTUBE_COOKIES=unset
|
2021-11-03 23:59:52 +00:00
|
|
|
ARG DISCORD_LOG_CHANNEL_ID=unset
|
|
|
|
ARG DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=unset
|
2021-09-25 20:08:42 +00:00
|
|
|
ENV DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} YOUTUBE_COOKIES=${YOUTUBE_COOKIES} GIT_COMMIT=${GIT_COMMIT}
|
2021-11-03 23:59:52 +00:00
|
|
|
ENV DISCORD_LOG_CHANNEL_ID=${DISCORD_LOG_CHANNEL_ID} DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=${DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP}
|
2021-09-25 20:08:42 +00:00
|
|
|
|
|
|
|
CMD ["python", "src/bot.py"]
|