Files
vision/gateway/Dockerfile
T
klevze 1087561400 Include the shared common package in the gateway image.
Uvicorn failed on import of common.request_logging because the Dockerfile only copied gateway/.
2026-08-25 08:05:58 +02:00

18 lines
403 B
Docker

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY gateway/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY gateway /app
COPY common /app/common
ENV PYTHONUNBUFFERED=1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]