Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,7 @@ dmypy.json
/documentos_txt
APIKEY.txt
/battleRoyale/*.txt
PythonDiscordBot/battleRoyale/DEATH.txt
PythonDiscordBot/battleRoyale/NOTHING.txt
PythonDiscordBot/battleRoyale/VERSUS.txt
PythonDiscordBot/battleRoyale/SINGLEKILL.txt
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'

services:
app:
build:
context: .
dockerfile: ./pythonDiscordBot.DockerFile
image: pythondiscordbot/app
# ports:
# - "80:80"
# - "443:443"
# environment:
# -
26 changes: 26 additions & 0 deletions pythonDiscordBot.DockerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:20.04

ARG version=1.0.0-SNAPSHOT

COPY ./PythonDiscordBot /home/PythonDiscordBot

EXPOSE 80
EXPOSE 443

RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y python3.5
RUN apt-get install -y python3-pip
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y tzdata
RUN apt -y update
RUN apt -y install libffi-dev libnacl-dev python3-dev
RUN apt -y install ffmpeg

RUN yes | pip3 install discord.py==1.7.3
RUN yes | pip3 install youtube_dl==2021.6.6
RUN yes | pip3 install pycoingecko==2.2.0
RUN yes | pip3 install PyNaCl==1.4.0
WORKDIR /home/PythonDiscordBot


CMD python3 main.py
3 changes: 3 additions & 0 deletions run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker-compose down
docker-compose up -d
docker-compose logs -f