21 lines
470 B
Docker
21 lines
470 B
Docker
# Dockerfile
|
|
|
|
# Verwende ein offizielles Python-Image als Basis
|
|
FROM python:3.10-slim
|
|
|
|
# Setze Arbeitsverzeichnis
|
|
WORKDIR /app
|
|
|
|
# Kopiere die requirements.txt und installiere die Python-Abhängigkeiten
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Kopiere den Rest des Anwendungsquellcodes
|
|
COPY . .
|
|
|
|
# Lade die Umgebungsvariablen aus der .env Datei
|
|
COPY .env .env
|
|
|
|
# Starte das Python-Skript
|
|
CMD ["python", "bot.py"]
|