Dockerfile.brancheneinstufung aktualisiert
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
# Dockerfile.brancheneinstufung (v3.1 - mit Startskript)
|
||||
# Dockerfile.brancheneinstufung (v4.0 - mit Cloudflare Tunnel)
|
||||
FROM python:3.8-slim
|
||||
|
||||
WORKDIR /app
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# System-Abhängigkeiten (inkl. dos2unix & ngrok)
|
||||
RUN apt-get update && apt-get install -y dos2unix wget curl unzip gnupg ... && \
|
||||
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \
|
||||
echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list && \
|
||||
apt-get update && apt-get install -y ngrok && \
|
||||
# System-Abhängigkeiten (inkl. dos2unix & cloudflared-Dependencies)
|
||||
# ENTFERNT: Die komplette ngrok-Installation via apt
|
||||
# NEU: Nur die Abhängigkeiten, die wir wirklich brauchen (wget, dos2unix)
|
||||
RUN apt-get update && apt-get install -y dos2unix wget && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# NEU: Lade und installiere den cloudflared Connector direkt
|
||||
RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /usr/local/bin/cloudflared && \
|
||||
chmod +x /usr/local/bin/cloudflared
|
||||
|
||||
# Python-Abhängigkeiten
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
@@ -19,8 +22,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY . .
|
||||
|
||||
# Code bereinigen (Zeilenumbrüche) und Startskript ausführbar machen
|
||||
# Diese wichtigen Zeilen von dir behalten wir bei!
|
||||
RUN dos2unix /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
# NEU: Port 8080 für den Webserver dokumentieren
|
||||
EXPOSE 8080
|
||||
|
||||
# Starte unser neues Start-Skript
|
||||
CMD ["/app/start.sh"]
|
||||
Reference in New Issue
Block a user