adding dockerfile
This commit is contained in:
parent
131b452e14
commit
a01e2371db
2 changed files with 14 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
|
.vscode/
|
||||||
update/
|
update/
|
||||||
.dockerignore
|
.dockerignore
|
||||||
Dockerfile
|
|
||||||
src/tokens.env
|
src/tokens.env
|
||||||
src/cogs/music_old.py
|
src/cogs/music_old.py
|
||||||
|
|
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM python:3.9.2-slim
|
||||||
|
|
||||||
|
RUN apt update && \
|
||||||
|
apt install -y --no-install-recommends ffmpeg git && \
|
||||||
|
apt autoremove
|
||||||
|
RUN /usr/local/bin/python -m pip install --upgrade pip
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
COPY src .
|
||||||
|
|
||||||
|
CMD [ "python", "-u", "./main.py" ]
|
Reference in a new issue