You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6ed20e8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: samples/python/hosted-agents/bring-your-own/invocations_ws/duplex-live-agent/src/duplex-live-agent/Dockerfile
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
+
FROM ghcr.io/astral-sh/uv:0.11.7 AS uv
1
2
FROM python:3.12-slim
2
3
4
+
COPY --from=uv /uv /uvx /bin/
5
+
3
6
WORKDIR /app
4
7
5
8
ENV PYTHONDONTWRITEBYTECODE=1 \
6
9
PYTHONUNBUFFERED=1
7
10
8
-
COPYrequirements.txt ./
9
-
RUNpip install --no-cache-dir -r requirements.txt
11
+
COPYpyproject.toml uv.lock uv.toml ./
12
+
RUNuv sync --frozen --no-dev --no-install-project
10
13
11
14
COPY . ./
12
15
@@ -22,7 +25,7 @@ EXPOSE 8088
22
25
# container start.
23
26
# PYTHONDONTWRITEBYTECODE is cleared for these commands only: it blocks
24
27
# bytecode *writes*, not *reads*, so images that set it still benefit.
25
-
RUN PYTHONDONTWRITEBYTECODE= python -m compileall -q $(python -c "import sysconfig as s; print(s.get_paths()['stdlib'], s.get_paths()['purelib'])") || true; \
Copy file name to clipboardExpand all lines: samples/python/hosted-agents/bring-your-own/invocations_ws/duplex-live-agent/src/duplex-live-agent/requirements.txt
0 commit comments