thepopebot 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thepopebot",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "type": "module",
5
5
  "description": "Create autonomous AI agents with a two-layer architecture: Next.js Event Handler + Docker Agent.",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  "build": "esbuild lib/chat/components/*.jsx lib/chat/components/**/*.jsx --outdir=lib/chat/components --format=esm --jsx=automatic --outbase=lib/chat/components",
32
32
  "prepublishOnly": "npm run build",
33
33
  "local": "bash bin/local.sh",
34
- "postinstall": "node bin/postinstall.js",
34
+ "postinstall": "if [ -f bin/postinstall.js ]; then node bin/postinstall.js; fi",
35
35
  "test": "echo \"No tests yet\" && exit 0"
36
36
  },
37
37
  "keywords": [
@@ -2,13 +2,9 @@ FROM node:22-bookworm-slim
2
2
 
3
3
  RUN apt-get update && apt-get install -y curl python3 make g++ && rm -rf /var/lib/apt/lists/*
4
4
 
5
- WORKDIR /deps
5
+ WORKDIR /app
6
6
  COPY package.json package-lock.json* ./
7
7
  RUN npm install --omit=dev
8
8
 
9
- ENV NODE_PATH=/deps/node_modules
10
-
11
- WORKDIR /app
12
-
13
9
  EXPOSE 80
14
- CMD ["sh", "-c", "cp -a /deps/node_modules/. /app/node_modules/ && exec node /app/node_modules/.bin/next start -p 80"]
10
+ CMD ["node_modules/.bin/next", "start", "-p", "80"]
@@ -22,8 +22,13 @@ services:
22
22
  event_handler:
23
23
  image: ${EVENT_HANDLER_IMAGE_URL:-stephengpope/thepopebot:event-handler-${THEPOPEBOT_VERSION:-latest}}
24
24
  volumes:
25
- - .:/app
26
- - /app/node_modules
25
+ - ./.next:/app/.next:ro
26
+ - ./config:/app/config:ro
27
+ - ./data:/app/data
28
+ - ./.env:/app/.env:ro
29
+ - ./cron:/app/cron
30
+ - ./triggers:/app/triggers
31
+ - ./logs:/app/logs:ro
27
32
  labels:
28
33
  - traefik.enable=true
29
34
  # Set APP_HOSTNAME in .env to the domain from APP_URL (e.g., mybot.example.com)