Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to run the Docker image #432

Closed
1 of 2 tasks
davidtavarez opened this issue Feb 14, 2025 · 1 comment · Fixed by #433
Closed
1 of 2 tasks

[BUG] Unable to run the Docker image #432

davidtavarez opened this issue Feb 14, 2025 · 1 comment · Fixed by #433

Comments

@davidtavarez
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Vercel Runtime Logs

  • I have checked the Vercel Runtime Logs for errors (if applicable)

Current Behavior

While using Docker I am using the next error:

$ next dev --turbo -H 0.0.0.0
18586 | function load(scopedContext = {}) {
18587 |   const context = {};
18588 |   Object.assign(context, {
18589 |     TextDecoder,
18590 |     TextEncoder,
18591 |     TextEncoderStream,
            ^
ReferenceError: Can't find variable: TextEncoderStream
      at load (/app/node_modules/next/dist/compiled/@edge-runtime/primitives/load.js:18591:5)
      at /app/node_modules/next/dist/compiled/@edge-runtime/primitives/index.js:5:22
      at /app/node_modules/next/dist/server/require-hook.js:65:12
      at /app/node_modules/next/dist/compiled/@edge-runtime/ponyfill/index.js:2:42
      at /app/node_modules/next/dist/server/require-hook.js:65:12
      at /app/node_modules/next/dist/telemetry/storage.js:20:7
      at /app/node_modules/next/dist/server/require-hook.js:65:12
error: script "dev" exited with code 1

Expected Behavior

It should run without problems.

Steps To Reproduce

  1. Create a docker-compose.yml file with the next content:
services:
  morphic:
      image: ghcr.io/miurla/morphic:latest
      container_name: morphic
      hostname: morphic
      environment:
        - OLLAMA_BASE_URL=${OLLAMA_BASE_URL}
        - SEARCH_API=searxng
        - SEARXNG_API_URL=http://searxng:8080
        - NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY=true
        - USE_LOCAL_REDIS=true
        - LOCAL_REDIS_URL=redis://redis:6379
        - SERPER_API_KEY=${SERPER_API_KEY}
      ports:
        - '3000:3000'
  1. Run the next command:
docker compose up -d

Environment

- OS: Linux

Anything else?

No response

@davidtavarez davidtavarez changed the title [BUG] <title> [BUG] Unable to run the Docker image Feb 14, 2025
@miurla
Copy link
Owner

miurla commented Feb 14, 2025

The fix has been merged and the new Docker image is now available.

Please pull the latest image:

docker pull ghcr.io/miurla/morphic:latest

The image now uses production mode by default, so you don't need any special configuration in your docker-compose.yaml. Just run:

docker compose up -d

Let me know if you still experience any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants