thepopebot 1.2.13 → 1.2.15

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/bin/cli.js CHANGED
@@ -141,6 +141,10 @@ function init() {
141
141
  console.log(' Created .gitignore');
142
142
  }
143
143
 
144
+ // Run npm install
145
+ console.log('\nInstalling dependencies...\n');
146
+ execSync('npm install', { stdio: 'inherit', cwd });
147
+
144
148
  // Update THEPOPEBOT_VERSION in .env if it exists
145
149
  const envPath = path.join(cwd, '.env');
146
150
  if (fs.existsSync(envPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thepopebot",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
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": {
@@ -1,14 +1,14 @@
1
1
  FROM node:22-bookworm-slim
2
2
 
3
- RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
3
+ RUN apt-get update && apt-get install -y curl python3 make g++ && rm -rf /var/lib/apt/lists/*
4
4
 
5
5
  WORKDIR /deps
6
6
  COPY package.json package-lock.json* ./
7
- RUN npm install --omit=dev --ignore-scripts
7
+ RUN npm install --omit=dev
8
8
 
9
9
  ENV NODE_PATH=/deps/node_modules
10
10
 
11
11
  WORKDIR /app
12
12
 
13
13
  EXPOSE 80
14
- CMD ["node", "/deps/node_modules/.bin/next", "start", "-p", "80"]
14
+ CMD ["sh", "-c", "cp -a /deps/node_modules/. /app/node_modules/ && exec node /app/node_modules/.bin/next start -p 80"]
@@ -23,6 +23,7 @@ services:
23
23
  image: ${EVENT_HANDLER_IMAGE_URL:-stephengpope/thepopebot:event-handler-${THEPOPEBOT_VERSION:-latest}}
24
24
  volumes:
25
25
  - .:/app
26
+ - /app/node_modules
26
27
  labels:
27
28
  - traefik.enable=true
28
29
  # Set APP_HOSTNAME in .env to the domain from APP_URL (e.g., mybot.example.com)
@@ -33,7 +34,7 @@ services:
33
34
  restart: unless-stopped
34
35
 
35
36
  runner:
36
- image: myoung34/github-actions-runner:latest
37
+ image: myoung34/github-runner:latest
37
38
  environment:
38
39
  REPO_URL: https://github.com/${GH_OWNER}/${GH_REPO}
39
40
  ACCESS_TOKEN: ${GH_TOKEN}