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
|
FROM python:3.8-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PYTHONPATH=/app
|
ENV PYTHONPATH=/app
|
||||||
|
|
||||||
# System-Abhängigkeiten (inkl. dos2unix & ngrok)
|
# System-Abhängigkeiten (inkl. dos2unix & cloudflared-Dependencies)
|
||||||
RUN apt-get update && apt-get install -y dos2unix wget curl unzip gnupg ... && \
|
# ENTFERNT: Die komplette ngrok-Installation via apt
|
||||||
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \
|
# NEU: Nur die Abhängigkeiten, die wir wirklich brauchen (wget, dos2unix)
|
||||||
echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | tee /etc/apt/sources.list.d/ngrok.list && \
|
RUN apt-get update && apt-get install -y dos2unix wget && \
|
||||||
apt-get update && apt-get install -y ngrok && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
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
|
# Python-Abhängigkeiten
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r 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 . .
|
COPY . .
|
||||||
|
|
||||||
# Code bereinigen (Zeilenumbrüche) und Startskript ausführbar machen
|
# Code bereinigen (Zeilenumbrüche) und Startskript ausführbar machen
|
||||||
|
# Diese wichtigen Zeilen von dir behalten wir bei!
|
||||||
RUN dos2unix /app/start.sh
|
RUN dos2unix /app/start.sh
|
||||||
RUN chmod +x /app/start.sh
|
RUN chmod +x /app/start.sh
|
||||||
|
|
||||||
|
# NEU: Port 8080 für den Webserver dokumentieren
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
# Starte unser neues Start-Skript
|
# Starte unser neues Start-Skript
|
||||||
CMD ["/app/start.sh"]
|
CMD ["/app/start.sh"]
|
||||||
Reference in New Issue
Block a user