-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe2b.Dockerfile
More file actions
38 lines (31 loc) · 1.16 KB
/
e2b.Dockerfile
File metadata and controls
38 lines (31 loc) · 1.16 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
FROM ubuntu:22.04
# Install system dependencies
RUN apt-get update && apt-get install -y \
golang-go \
git \
curl \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js 18 (required for OpenCode)
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install OpenCode CLI globally
# Package name is opencode-ai on npm
RUN npm install -g opencode-ai
# Install GSD-OpenCode (meta-prompting framework adapted specifically for OpenCode)
# Uses kebab-case commands: /gsd-help, /gsd-new-project, etc.
# Install globally so the binary is in PATH, then install skills to /opt/gsd-opencode
# The "2" selects "Local (./.opencode)" option in the interactive installer
RUN npm install -g gsd-opencode && \
mkdir -p /opt/gsd-opencode && \
cd /opt/gsd-opencode && \
echo "2" | gsd-opencode && \
chmod -R 755 /opt/gsd-opencode
# Create workspace directory with open permissions
RUN mkdir -p /workspace/repo && chmod 777 /workspace && chmod 777 /workspace/repo
# Set working directory
WORKDIR /workspace/repo
# Expose OpenCode server port
EXPOSE 8080