Merge branch '7-docker' into 'develop'
Create Dockerfile Closes #7 See merge request ekzyis/musicube!10
This commit is contained in:
commit
9f34e0d774
|
@ -0,0 +1,4 @@
|
|||
**
|
||||
!src/
|
||||
!*cookies.txt
|
||||
!requirements.txt
|
|
@ -1,2 +1,2 @@
|
|||
DISCORD_BOT_TOKEN=
|
||||
YOUTUBE_COOKIES=
|
||||
YOUTUBE_COOKIES=youtube.com_cookies.txt
|
|
@ -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"]
|
Loading…
Reference in New Issue