dockerize all

This commit is contained in:
Julian Nehring 2025-04-22 12:14:22 +02:00
parent 55eec6c200
commit 4bd7a01857
7 changed files with 39 additions and 5 deletions

16
channelBot/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM debian:bullseye
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install -y python3-full
RUN apt-get install -y python3-pip
RUN apt-get install -y python-is-python3
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
ADD requirements.txt ./
RUN python3 -m pip install --no-cache-dir -r requirements.txt
ADD main.py ./
CMD [ "python", "./main.py" ]

BIN
channelBot/channelbot.tar Normal file

Binary file not shown.

View File

@ -7,7 +7,7 @@ intents = discord.Intents.all()
client = commands.Bot(command_prefix="!", intents=intents)
# settingsFile = 'settings.json'
settingsFile = '/home/ne_ju/pythonProjects/discord/channelBot/settings.json'
settingsFile = '/usr/src/app/channelBot/settings.json'
try:
settings = json.load(open(settingsFile, 'r'))

View File

@ -0,0 +1 @@
discord~=1.7.3

17
dasGlas/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM debian:bullseye
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install -y ffmpeg
RUN apt-get install -y python3-full
RUN apt-get install -y python3-pip
RUN apt-get install -y python-is-python3
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
ADD requirements.txt ./
RUN python3 -m pip install --no-cache-dir -r requirements.txt
ADD main.py ./
CMD [ "python", "./main.py" ]

BIN
dasGlas/dasGlas.tar Normal file

Binary file not shown.

View File

@ -13,7 +13,7 @@ from discord.ext import tasks
client = discord.Client(intents=discord.Intents.all())
glas_json = Path('/home/ne_ju/pythonProjects/discord/dasGlas/glas.json')
glas_json = Path('/usr/src/app/dasGlas/glas.json')
ch_coin = 'das-glas'
ch_witz = 'witzigkeit-kennt-keine-grenzen'
@ -25,9 +25,9 @@ react_emo_money_with_wings = '\U0001F4B8'
react_emo_moneybag = '\U0001F4B0'
react_emo_smiling_face_with_tear = '\U0001f972'
snd_coin = '/home/ne_ju/pythonProjects/discord/dasGlas/coin.mp3'
snd_witz = '/home/ne_ju/pythonProjects/discord/dasGlas/kein_Pardon.mp3'
snd_test = '/home/ne_ju/pythonProjects/discord/dasGlas/test.mp3'
snd_coin = '/usr/src/app/dasGlas/coin.mp3'
snd_witz = '/usr/src/app/dasGlas/kein_Pardon.mp3'
snd_test = '/usr/src/app/dasGlas/test.mp3'
# JSON überprüfen/erstellen--------------------------------------------------------------------------------