new file: Dockerfile new file: README.md new file: app.py new file: asknotesintro.txt new file: background_data.txt new file: bot.py new file: introduction.txt new file: requirements.txt new file: run.py new file: start.bat new file: templates/index.html new file: templates/login.html new file: templates/settings.html
30 lines
756 B
Docker
30 lines
756 B
Docker
# Basis-Image mit Python
|
|
FROM python:3.10-slim
|
|
|
|
# Arbeitsverzeichnis erstellen
|
|
WORKDIR /app
|
|
|
|
# Kopiere die requirements-Datei und installiere die Abhängigkeiten
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Kopiere den gesamten Projektinhalt in das Arbeitsverzeichnis
|
|
COPY . .
|
|
|
|
# Umgebungsvariablen von Coolify übernehmen
|
|
ENV DISCORD_TOKEN=$DISCORD_TOKEN
|
|
ENV DB_HOST=$DB_HOST
|
|
ENV DB_PORT=$DB_PORT
|
|
ENV DB_USER=$DB_USER
|
|
ENV DB_PASSWORD=$DB_PASSWORD
|
|
ENV DB_DATABASE=$DB_DATABASE
|
|
ENV OPENAI_BASE_URL=$OPENAI_BASE_URL
|
|
ENV OPENAI_API_KEY=$OPENAI_API_KEY
|
|
ENV OWNER_ID=$OWNER_ID
|
|
ENV FLASK_SECRET_KEY=$FLASK_SECRET_KEY
|
|
ENV ADMIN_USER=$ADMIN_USER
|
|
ENV ADMIN_PASS=$ADMIN_PASS
|
|
|
|
# Startbefehl für das Webpanel
|
|
CMD ["python", "app.py"]
|