Dateien nach "/" hochladen
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user