Files
Brancheneinstufung2/connector-superoffice/Dockerfile
Floke 5f8878cffe fix: [30388f42] Connector Dockerfile - Explizite Datei-Kopien (Fix 'No such file')
- Ersetzt  durch explizite  Befehle für alle notwendigen Python-Skripte.
- Kopiert , , , ,  und  direkt nach  im Image.
- Behebt den  Fehler.
2026-03-06 18:39:24 +00:00

41 lines
980 B
Docker

# --- STAGE 1: Builder ---
FROM python:3.11-slim AS builder
WORKDIR /app
# Install system dependencies needed for building C-extensions
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies into a local directory
COPY requirements.txt .
RUN pip install --user --no-cache-dir -r requirements.txt
# --- STAGE 2: Final Runtime ---
FROM python:3.11-slim
WORKDIR /app
# Copy only the installed packages from builder
COPY --from=builder /root/.local /root/.local
# Update PATH to include the user-installed packages
ENV PATH=/root/.local/bin:$PATH
# Copy source code (explicitly place needed files in /app root)
COPY worker.py .
COPY webhook_app.py .
COPY queue_manager.py .
COPY config.py .
COPY superoffice_client.py .
COPY start.sh .
# Expose port for Webhook
EXPOSE 8000
# Make sure scripts are executable
RUN chmod +x start.sh
# Start both worker and webhook
CMD ["./start.sh"]