-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 1.25 KB
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 1.25 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
# cloudx.sh Development Environment Container
# Based on OpenCode template with multi-runtime support
FROM docker.io/cloudflare/sandbox:0.6.7
# Add opencode and mise install locations to PATH before installation
ENV PATH="/root/.opencode/bin:/root/.local/bin:${PATH}"
# Install mise (https://mise.jdx.dev/) for tool version management
RUN curl https://mise.run | MISE_INSTALL_PATH=/root/.local/bin/mise sh
# Install OpenCode CLI
RUN curl -fsSL https://opencode.ai/install -o /tmp/install-opencode.sh \
&& bash /tmp/install-opencode.sh \
&& rm /tmp/install-opencode.sh \
&& opencode --version
# Clone sample project for the web UI to work with
RUN git clone --depth 1 https://github.com/cloudflare/agents.git /home/user/agents
# Start in the sample project directory
WORKDIR /home/user/agents
# Expose OpenCode server port
EXPOSE 4096
# Set up Git configuration defaults
RUN git config --global init.defaultBranch main \
&& git config --global advice.detachedHead false \
&& git config --global user.email "cloudx@cloudx.sh" \
&& git config --global user.name "CloudX" \
&& git config --global credential.helper '' \
&& git config --global core.askPass ''
# Disable git credential prompts (no TTY in container)
ENV GIT_TERMINAL_PROMPT=0