-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 969 Bytes
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 969 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
30
31
32
33
34
35
36
37
38
39
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PATH="/usr/local/bin:${PATH}"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash \
ca-certificates \
curl \
git \
gosu \
jq \
nodejs \
npm \
openssh-client \
tini \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g @openai/codex
ARG USERNAME=agent
ARG USER_UID=1000
ARG USER_GID=1000
RUN groupadd --gid "${USER_GID}" "${USERNAME}" \
&& useradd --uid "${USER_UID}" --gid "${USER_GID}" -m "${USERNAME}"
WORKDIR /workspace
COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
COPY scripts/agentd.sh /usr/local/bin/agentd
COPY scripts/agentctl.sh /usr/local/bin/agentctl
RUN chmod 755 /usr/local/bin/entrypoint.sh /usr/local/bin/agentd /usr/local/bin/agentctl
ENTRYPOINT ["/usr/bin/tini","--","/usr/local/bin/entrypoint.sh"]
CMD ["agentd"]