dockerize all
This commit is contained in:
parent
55eec6c200
commit
4bd7a01857
|
|
@ -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" ]
|
||||||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ intents = discord.Intents.all()
|
||||||
client = commands.Bot(command_prefix="!", intents=intents)
|
client = commands.Bot(command_prefix="!", intents=intents)
|
||||||
|
|
||||||
# settingsFile = 'settings.json'
|
# settingsFile = 'settings.json'
|
||||||
settingsFile = '/home/ne_ju/pythonProjects/discord/channelBot/settings.json'
|
settingsFile = '/usr/src/app/channelBot/settings.json'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
settings = json.load(open(settingsFile, 'r'))
|
settings = json.load(open(settingsFile, 'r'))
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
discord~=1.7.3
|
||||||
|
|
@ -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" ]
|
||||||
Binary file not shown.
|
|
@ -13,7 +13,7 @@ from discord.ext import tasks
|
||||||
|
|
||||||
client = discord.Client(intents=discord.Intents.all())
|
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_coin = 'das-glas'
|
||||||
ch_witz = 'witzigkeit-kennt-keine-grenzen'
|
ch_witz = 'witzigkeit-kennt-keine-grenzen'
|
||||||
|
|
@ -25,9 +25,9 @@ react_emo_money_with_wings = '\U0001F4B8'
|
||||||
react_emo_moneybag = '\U0001F4B0'
|
react_emo_moneybag = '\U0001F4B0'
|
||||||
react_emo_smiling_face_with_tear = '\U0001f972'
|
react_emo_smiling_face_with_tear = '\U0001f972'
|
||||||
|
|
||||||
snd_coin = '/home/ne_ju/pythonProjects/discord/dasGlas/coin.mp3'
|
snd_coin = '/usr/src/app/dasGlas/coin.mp3'
|
||||||
snd_witz = '/home/ne_ju/pythonProjects/discord/dasGlas/kein_Pardon.mp3'
|
snd_witz = '/usr/src/app/dasGlas/kein_Pardon.mp3'
|
||||||
snd_test = '/home/ne_ju/pythonProjects/discord/dasGlas/test.mp3'
|
snd_test = '/usr/src/app/dasGlas/test.mp3'
|
||||||
# JSON überprüfen/erstellen--------------------------------------------------------------------------------
|
# JSON überprüfen/erstellen--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue