-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (49 loc) · 1.31 KB
/
Copy pathDockerfile
File metadata and controls
63 lines (49 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:latest
# Update and install essential packages including Python and node-gyp dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
iputils-ping \
vim \
curl \
wget \
net-tools \
dnsutils \
iproute2 \
traceroute \
tcpdump \
telnet \
unzip \
tree \
python3 \
python-is-python3 \
make \
g++ \
sqlite3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Add this line to explicitly install sqlite-vec for ARM64
# RUN pnpm add sqlite-vec-linux-arm64
# Set Python 3 as the default python
# RUN ln -s /usr/bin/python3 /usr/bin/python
# Install Node.js 22.13.0
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && \
nvm install 22.13.0 && \
nvm use 22.13.0 && \
nvm alias default 22.13.0
# Add node and npm to path so the commands are available
ENV NODE_PATH=$NVM_DIR/v22.13.0/lib/node_modules
ENV PATH=$NVM_DIR/versions/node/v22.13.0/bin:$PATH
# Install bun globally
RUN npm i -g bun node-gyp rimraf tsup tsx dotenv-cli
# Copy project to runtime directory
RUN mkdir -p /root/runtime
COPY . /root/runtime
# Set the working directory
WORKDIR /root/runtime
USER root
RUN bun install
RUN bun run build
CMD bun run agent