Skip to content

scripts missing src directory while inside docker #94

@travismolick

Description

@travismolick

When attempting to run a script from scripts inside docker, its attempting to call back a directory into the src but that folder was not copied into the container?

/app $ bun scripts/startup-recovery.ts
error: Cannot find module '../src/lib/recovery' from '/app/scripts/startup-recovery.ts'

Bun v1.2.21 (Linux x64 baseline)
/app $ ls -lhsa
total 68K    
   4.0K drwxr-xr-x    1 root     root        4.0K Sep 10 04:20 .
   4.0K drwxr-xr-x    1 root     root        4.0K Sep 11 06:49 ..
   4.0K drwxr-xr-x    2 gitea-mi nodejs      4.0K Sep 10 04:20 certs
   4.0K drwxr-xr-x    2 bun      bun         4.0K Sep 11 07:49 data
   4.0K drwxr-xr-x    5 root     root        4.0K Sep 10 04:20 dist
  16.0K -rwxr-xr-x    1 root     root       13.5K Sep 10 04:19 docker-entrypoint.sh
   4.0K drwxr-xr-x    3 root     root        4.0K Sep 10 04:19 drizzle
  20.0K drwxr-xr-x  602 root     root       20.0K Sep 10 04:19 node_modules
   4.0K -rw-r--r--    1 root     root        4.0K Sep 10 04:19 package.json
   4.0K drwxr-xr-x    2 root     root        4.0K Sep 10 04:19 scripts
/app $

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions