Skip to content

Dockerfile errors when building image #1623

Closed
@kylebuildsstuff

Description

Describe the bug

Running pnpm run docker:build or docker build fails and results in this error:

645.4 • Running build in 52 packages
645.4 • Remote caching disabled
649.5 /app/node_modules/turbo/bin/turbo:273
649.5   throw e;
649.5   ^
649.5
649.5 Error: Command failed: /app/node_modules/turbo-linux-64/bin/turbo run build
649.5     at genericNodeError (node:internal/errors:983:15)
649.5     at wrappedFn (node:internal/errors:537:14)
649.5     at checkExecSyncError (node:child_process:882:11)
649.5     at Object.execFileSync (node:child_process:918:15)
649.5     at Object.<anonymous> (/app/node_modules/turbo/bin/turbo:266:17)
649.5     at Module._compile (node:internal/modules/cjs/loader:1546:14)
649.5     at Object..js (node:internal/modules/cjs/loader:1698:10)
649.5     at Module.load (node:internal/modules/cjs/loader:1303:32)
649.5     at Function._load (node:internal/modules/cjs/loader:1117:12)
649.5     at TracingChannel.traceSync (node:diagnostics_channel:322:14) {
649.5   status: null,
649.5   signal: 'SIGKILL',
649.5   output: [ null, null, null ],
649.5   pid: 13087,
649.5   stdout: null,
649.5   stderr: null
649.5 }
649.5
649.5 Node.js v23.3.0
649.7  ELIFECYCLE  Command failed with exit code 1.
------
Dockerfile:27
--------------------
  26 |     # Install dependencies and build the project
  27 | >>> RUN pnpm install \
  28 | >>>     && pnpm build-docker \
  29 | >>>     && pnpm prune --prod
  30 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pnpm install     && pnpm build-docker     && pnpm prune --prod" did not complete successfully: exit code: 1
 ELIFECYCLE  Command failed with exit code 1.

To Reproduce

  1. Checkout on latest main branch
  2. Run pnpm run docker:build or docker build --platform linux/amd64 -t example/name:1.0.0 .

Expected behavior

Docker build should run successfully, creating a docker image

Additional context

  1. Using v0.1.7-alpha.2
  2. Running Macbook Pro M3 on Sonoma 14.1.1
  3. Running docker-compose up results in similar error related to the docker image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions