Skip to content

Report: local docker fail at first run #1083

@blueyestar

Description

@blueyestar

I following the instruction to run a docker container

docker run -d \
  --name my-prompts \
  -p 4444:3000 \
  -v prompts-data:/data \
  -e PCHAT_NAME="Acme Prompts" \
  -e PCHAT_DESCRIPTION="Our team's AI prompt library" \
  -e PCHAT_COLOR="#ff6600" \
  -e PCHAT_AUTH_PROVIDERS="github,google" \
  -e PCHAT_LOCALES="en,es,fr" \
  ghcr.io/f/prompts.chat

it is failed at first run with following log

prompts.chat  |
prompts.chat  | ╔═══════════════════════════════════════════════════════════════╗
prompts.chat  | ║                                                               ║
prompts.chat  | ║   🚀 prompts.chat - AI Prompt Library                        ║
prompts.chat  | ║                                                               ║
prompts.chat  | ╚═══════════════════════════════════════════════════════════════╝
prompts.chat  |
prompts.chat  |
prompts.chat  | ▶ First run detected - building prompts.chat...
prompts.chat  |
prompts.chat  | ▶ Cloning repository...
prompts.chat  | Cloning into '/data/app'...
prompts.chat  | ✓ Repository cloned
prompts.chat  | ▶ Installing dependencies...
prompts.chat  | npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
prompts.chat  |
prompts.chat  | > prompts.chat-v2@0.1.0 postinstall
prompts.chat  | > prisma generate
prompts.chat  |
prompts.chat  | warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
prompts.chat  | For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Loaded Prisma config from prisma.config.ts.
prompts.chat  |
prompts.chat  | warn The Prisma config file in prisma.config.ts overrides the deprecated `package.json#prisma` property in package.json.
prompts.chat  |   For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Prisma config detected, skipping environment variable loading.
prompts.chat  | Prisma schema loaded from prisma/schema.prisma
prompts.chat  | ┌─────────────────────────────────────────────────────────┐
prompts.chat  | │  Update available 6.19.1 -> 7.5.0                       │
prompts.chat  | │                                                         │
prompts.chat  | │  This is a major update - please follow the guide at    │
prompts.chat  | │  https://pris.ly/d/major-version-upgrade                │
prompts.chat  | │                                                         │
prompts.chat  | │  Run the following to update                            │
prompts.chat  | │    npm i --save-dev prisma@latest                       │
prompts.chat  | │    npm i @prisma/client@latest                          │
prompts.chat  | └─────────────────────────────────────────────────────────┘
prompts.chat  |
prompts.chat  | ✔ Generated Prisma Client (v6.19.1) to ./node_modules/@prisma/client in 112ms
prompts.chat  |
prompts.chat  | Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
prompts.chat  |
prompts.chat  | Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate
prompts.chat  |
prompts.chat  |
prompts.chat  | added 1317 packages, and audited 1318 packages in 37s
prompts.chat  |
prompts.chat  | 346 packages are looking for funding
prompts.chat  |   run `npm fund` for details
prompts.chat  |
prompts.chat  | 41 vulnerabilities (11 moderate, 28 high, 2 critical)
prompts.chat  |
prompts.chat  | To address issues that do not require attention, run:
prompts.chat  |   npm audit fix
prompts.chat  |
prompts.chat  | To address all issues (including breaking changes), run:
prompts.chat  |   npm audit fix --force
prompts.chat  |
prompts.chat  | Run `npm audit` for details.
prompts.chat  | npm notice
prompts.chat  | npm notice New minor version of npm available! 11.9.0 -> 11.12.0
prompts.chat  | npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.0
prompts.chat  | npm notice To update run: npm install -g npm@11.12.0
prompts.chat  | npm notice
prompts.chat  | ✓ Dependencies installed
prompts.chat  | ▶ Generating configuration...
prompts.chat  | 🔧 Docker Setup: Generating prompts.config.ts...
prompts.chat  |
prompts.chat  |   Brand:       My Prompt Library
prompts.chat  |   Color:       #6366f1
prompts.chat  |   Auth:        credentials
prompts.chat  |   Locales:     en
prompts.chat  |
prompts.chat  | ✅ Generated prompts.config.ts
prompts.chat  | ✓ Configuration generated
prompts.chat  | ▶ Generating Prisma client...
prompts.chat  | warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
prompts.chat  | For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Loaded Prisma config from prisma.config.ts.
prompts.chat  |
prompts.chat  | warn The Prisma config file in prisma.config.ts overrides the deprecated `package.json#prisma` property in package.json.
prompts.chat  |   For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Prisma config detected, skipping environment variable loading.
prompts.chat  | Prisma schema loaded from prisma/schema.prisma
prompts.chat  |
prompts.chat  | ✔ Generated Prisma Client (v6.19.1) to ./node_modules/@prisma/client in 166ms
prompts.chat  |
prompts.chat  | Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
prompts.chat  |
prompts.chat  | Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
prompts.chat  |
prompts.chat  | ✓ Prisma client generated
prompts.chat  | ▶ Building Next.js application (this may take a few minutes)...
prompts.chat  |
prompts.chat  | > prompts.chat-v2@0.1.0 build
prompts.chat  | > prisma generate && next build
prompts.chat  |
prompts.chat  | warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
prompts.chat  | For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Loaded Prisma config from prisma.config.ts.
prompts.chat  |
prompts.chat  | warn The Prisma config file in prisma.config.ts overrides the deprecated `package.json#prisma` property in package.json.
prompts.chat  |   For more information, see: https://pris.ly/prisma-config
prompts.chat  |
prompts.chat  | Prisma config detected, skipping environment variable loading.
prompts.chat  | Prisma schema loaded from prisma/schema.prisma
prompts.chat  |
prompts.chat  | ✔ Generated Prisma Client (v6.19.1) to ./node_modules/@prisma/client in 207ms
prompts.chat  |
prompts.chat  | Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
prompts.chat  |
prompts.chat  | Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
prompts.chat  |
prompts.chat  | Attention: Next.js now collects completely anonymous telemetry regarding usage.
prompts.chat  | This information is used to shape Next.js' roadmap and prioritize features.
prompts.chat  | You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
prompts.chat  | https://nextjs.org/telemetry
prompts.chat  |
prompts.chat  | ▲ Next.js 16.1.0 (Turbopack)
prompts.chat  | - Experiments (use with caution):
prompts.chat  |   · clientTraceMetadata
prompts.chat  |   · serverActions
prompts.chat  |
prompts.chat  |   Creating an optimized production build ...
prompts.chat  | Killed
prompts.chat exited with code 137

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions