| 123456789101112131415 |
- FROM python:3.12-slim
- WORKDIR /app
- COPY requirements.txt .
- RUN pip install --no-cache-dir -r requirements.txt \
- && pip install --no-cache-dir opentelemetry-distro opentelemetry-exporter-otlp-proto-grpc \
- && opentelemetry-bootstrap -a install
- COPY app.py color.py .
- COPY static ./static
- EXPOSE 8095
- CMD ["opentelemetry-instrument", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8095"]
|