Create Dockerfile

This commit is contained in:
ekzyis 2021-09-25 22:08:42 +02:00
parent a0ac98f796
commit 4f4e693df1
3 changed files with 22 additions and 1 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
**
!src/
!*cookies.txt
!requirements.txt

View File

@ -1,2 +1,2 @@
DISCORD_BOT_TOKEN= DISCORD_BOT_TOKEN=
YOUTUBE_COOKIES= YOUTUBE_COOKIES=youtube.com_cookies.txt

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
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
ARG YOUTUBE_COOKIES=youtube.com_cookies.txt
ENV DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} YOUTUBE_COOKIES=${YOUTUBE_COOKIES} GIT_COMMIT=${GIT_COMMIT}
CMD ["python", "src/bot.py"]