forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 794 Bytes
/
Dockerfile
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
# Use Node.js 23-alpine image
FROM node:23-alpine
# Set the working directory
WORKDIR /usr/src/app
# Install system dependencies
RUN apk add --no-cache python3 make g++ && ln -sf python3 /usr/bin/python
# Set environment variables for PNPM
ENV PNPM_HOME=/usr/local/share/.pnpm
ENV PATH=$PNPM_HOME/bin:$PATH
ENV SHELL=/bin/sh
# Install pnpm globally
RUN npm install -g pnpm
# Add global dependencies
RUN pnpm add -g ts-node typescript
# Copy package files
COPY package.json pnpm-lock.yaml ./
# Install project dependencies
RUN pnpm install --prod --frozen-lockfile --shamefully-hoist
# Copy application code
COPY . .
# Expose the port the app listens on
EXPOSE 3000
# Start the application
CMD ["pnpm", "start", "--filter", "@ai16z/agent", "--character=characters/gai.character.json"]