-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 799 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 799 Bytes
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
FROM ghcr.io/astral-sh/uv:python3.13-bookworm AS osworld-clone
# Clone osworld repo.
RUN git clone --depth=1 -b agentbeats https://github.com/RDI-Foundation/osworld-qemu.git /osworld
FROM scratch AS osworld-ctx
# Re-root the clone so its contents are at /. This stage can be overridden for
# local development to skip the clone:
# docker build --build-context osworld-ctx=./osworld .
COPY --from=osworld-clone /osworld /
FROM ghcr.io/astral-sh/uv:python3.13-bookworm
RUN adduser agent
USER agent
WORKDIR /home/agent
COPY pyproject.toml uv.lock README.md ./
RUN \
--mount=type=cache,target=/home/agent/.cache/uv,uid=1000 \
uv sync --locked --extra osworld
COPY --from=osworld-ctx / osworld
COPY src src
ENTRYPOINT ["uv", "run", "src/server.py"]
CMD ["--host", "0.0.0.0"]
EXPOSE 9009