-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 857 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (22 loc) · 857 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
FROM node:20-slim
# System deps needed for native npm modules (sqlite3 etc.)
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ git curl unzip \
&& rm -rf /var/lib/apt/lists/*
# Install bun, then elizaos CLI
# --ignore-scripts skips the ollama plugin postinstall (not needed — we use Groq)
RUN curl -fsSL https://bun.sh/install | bash && \
export PATH="/root/.bun/bin:$PATH" && \
npm install -g @elizaos/cli@1.7.2 --ignore-scripts
ENV PATH="/root/.bun/bin:$PATH"
WORKDIR /app
# Copy package files and install project deps
COPY package.json ./
RUN npm install
# Copy all source files
COPY . .
EXPOSE 3000
# LLM provider — override at deploy time
ENV OPENAI_BASE_URL=https://api.groq.com/openai/v1
ENV NODE_ENV=production
CMD ["elizaos", "start", "--character", "characters/agent.character.json"]