Dockerfile 390 B

123456789101112131415
  1. FROM python:3.12-slim
  2. WORKDIR /app
  3. COPY requirements.txt .
  4. RUN pip install --no-cache-dir -r requirements.txt \
  5. && pip install --no-cache-dir opentelemetry-distro opentelemetry-exporter-otlp-proto-grpc \
  6. && opentelemetry-bootstrap -a install
  7. COPY app.py .
  8. COPY static ./static
  9. EXPOSE 8096
  10. CMD ["opentelemetry-instrument", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8096"]