Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 1.55 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (33 loc) · 1.55 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
FROM node:24-bookworm
COPY --from=ghcr.io/astral-sh/uv:0.6.9 /uv /uvx /bin/
ENV CI=true
ENV VIRTUAL_ENV=/opt/openhands
ENV UV_PYTHON_INSTALL_DIR=/opt/uv-python
ENV OPENHANDS_SUPPRESS_BANNER=1
ENV PATH="/opt/openhands/bin:${PATH}"
ENV HOME=/home/runner
ENV AGENTIC_UI_INSIDE_CONTAINER=1
ENV AGENTIC_UI_MODEL=openrouter/z-ai/glm-5.3-flash
RUN apt-get update \
&& apt-get install --yes --no-install-recommends ca-certificates chromium ffmpeg git gh \
&& rm -rf /var/lib/apt/lists/* \
&& uv venv --python 3.12 /opt/openhands \
&& uv pip install --python /opt/openhands/bin/python \
"openhands-sdk==1.44.1" \
"openhands-tools==1.44.1" \
"mcp==1.27.0" \
&& npm install --global opencode-ai@1.18.26 \
&& chmod -R a+rX /opt/uv-python /opt/openhands \
&& groupadd --gid 10001 runner \
&& useradd --uid 10001 --gid 10001 --create-home --shell /bin/bash runner \
&& mkdir -p /opt/agentic-ui /workspace /data \
&& chown -R runner:runner /workspace /data
COPY --chown=runner:runner . /opt/agentic-ui
RUN chown -R runner:runner /home/runner \
&& /opt/openhands/bin/python -c "from openhands.tools.browser_use.impl import BrowserToolExecutor; print('OpenHands browser runtime ready')" \
&& opencode --version | grep -Fq "1.18.26" \
&& node --check /opt/agentic-ui/src/container-cli.mjs \
&& /opt/openhands/bin/python -m py_compile /opt/agentic-ui/src/browser_runtime.py /opt/agentic-ui/src/browser_mcp.py /opt/agentic-ui/src/run_recipe.py
USER runner
WORKDIR /workspace
CMD ["node", "/opt/agentic-ui/src/remote-job.mjs"]