-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 903 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 903 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
FROM python:3.12-slim
RUN apt-get update -qq && \
apt-get install -y -qq --no-install-recommends \
curl git ca-certificates gnupg && \
# Node.js 20 (needed for WhatsApp bridge)
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
> /etc/apt/sources.list.d/nodesource.list && \
apt-get update -qq && \
apt-get install -y -qq --no-install-recommends nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir nanobot-ai
RUN mkdir -p /root/.nanobot
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY generate_config.py /generate_config.py
EXPOSE 18790
ENTRYPOINT ["/entrypoint.sh"]