fix errors
This commit is contained in:
+8
-12
@@ -1,28 +1,24 @@
|
||||
# Dockerfile
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Arbeitsverzeichnis im Container
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Abhängigkeiten kopieren und installieren
|
||||
# Sicherstellen, dass requirements.txt im Repo existiert (Inhalt: requests)
|
||||
# Copy and install requirements
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# --- JETZT MIT UNTERSTRICH ---
|
||||
# Kopiere das Skript aus deinem Repository in das Image
|
||||
COPY gts_holmirdas.py .
|
||||
# -----------------------------
|
||||
|
||||
# Datenverzeichnis für Persistenz (falls das Skript dort etwas speichert)
|
||||
# Create data directory
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
# Non-Root User für die Sicherheit
|
||||
# Create non-root user
|
||||
RUN useradd -r -u 1000 holmirdas
|
||||
|
||||
# Set ownership
|
||||
RUN chown -R holmirdas:holmirdas /app
|
||||
|
||||
# Wechsel zum User
|
||||
# Switch to non-root user
|
||||
USER holmirdas
|
||||
|
||||
# Startbefehl (ebenfalls mit Unterstrich)
|
||||
# Default command (will be overridden by docker-compose)
|
||||
CMD ["python", "gts_holmirdas.py"]
|
||||
|
||||
Reference in New Issue
Block a user