-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (38 loc) · 2.12 KB
/
Dockerfile
File metadata and controls
57 lines (38 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
COPY util/ /app/util/
COPY instrumentation-genai/ /app/instrumentation-genai/
RUN echo "=== Contents of /app ===" && \
ls -la /app/ && \
echo "=== Checking for util directory ===" && \
ls -la /app/util/ || echo "ERROR: util dir not found at /app/util/" && \
echo "=== Checking for opentelemetry-util-genai ===" && \
ls -la /app/util/opentelemetry-util-genai/ || echo "ERROR: opentelemetry-util-genai not found" && \
echo "=== Checking pyproject.toml ===" && \
test -f /app/util/opentelemetry-util-genai/pyproject.toml && echo "pyproject.toml exists" || echo "ERROR: No pyproject.toml"
RUN python -m pip install --upgrade pip
RUN python -m pip install pre-commit rstcheck || true
ENV HOME=/tmp
RUN pip uninstall -y opentelemetry-util-genai || true && \
pip install -e /app/util/opentelemetry-util-genai --no-deps
RUN pip uninstall -y opentelemetry-util-genai-emitters-splunk || true && \
pip install -e /app/util/opentelemetry-util-genai-emitters-splunk --no-deps
RUN pip uninstall -y opentelemetry-util-genai-evals || true && \
pip install -e /app/util/opentelemetry-util-genai-evals --no-deps
RUN pip uninstall -y opentelemetry-util-genai-evals-deepeval || true && \
pip install -e /app/util/opentelemetry-util-genai-evals-deepeval
RUN pip uninstall -y opentelemetry-instrumentation-langchain || true && \
pip install -e /app/instrumentation-genai/opentelemetry-instrumentation-langchain
RUN pip install -r /app/instrumentation-genai/opentelemetry-instrumentation-langchain/examples/multi_agent_travel_planner/requirements.txt
RUN pip install opentelemetry-distro opentelemetry-exporter-otlp
RUN opentelemetry-bootstrap -a install && \
pip uninstall -y opentelemetry-instrumentation-openai-v2-outdated
WORKDIR /app/instrumentation-genai/opentelemetry-instrumentation-langchain/examples/multi_agent_travel_planner
RUN mkdir -p .deepeval && \
chmod 777 .deepeval && \
python -c "import deepeval" || true
EXPOSE 8080
CMD ["opentelemetry-instrument", "python", "main.py"]