Skip to content

Docker build 0.4.3 fails #2889

@David-Lor

Description

@David-Lor

Check for other issues

  • I've checked for other issues, and none exist.

Issue description

Trying to build Docker image for the current state of the main branch (allegedly v0.4.3) but ends up failing.

Steps to reproduce

  1. git clone
  2. cd /apps/server/docker
  3. docker build . -t local/spacedrive:0.4.3

Platform and versions

Debian 12, amd64, Docker 28.3.3

Stack trace

=> CANCELED [server 3/8] RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt  env CI=true ./scripts/setup.sh                                     20.3s
 => CACHED [web 1/2] RUN --mount=type=cache,target=/root/.local/share/pnpm/store --mount=type=cache,target=/root/.cache/pnpm/metadata  pnpm install --frozen-lockfile              0.0s
 => ERROR [web 2/2] RUN pnpm web build                                                                                                                                            19.4s 
------                                        
 > [web 2/2] RUN pnpm web build:              
2.169                                         
2.169 > @sd/monorepo@ web /srv/spacedrive     
2.169 > pnpm --filter @sd/web --  build       
2.169                                                                                                                                                                                   
3.848                                                                                       
3.848 > @sd/web@ build /srv/spacedrive/apps/web                                                                                                                                         
3.848 > vite build                                                                                                                                                                      
3.848                                                                                                                                                                                   
11.56 vite v5.4.9 building for production...                                                                                                                                            
11.56                                                                                                                                                                                   
11.56  WARN                                                                                                                                                                             
11.56 (!) outDir /srv/spacedrive/apps/web/dist is not inside project root and will not be emptied.             
11.56 Use --emptyOutDir to override.                                                                                                                                                    
11.56                                                                                                                                                                                   
11.56 
11.73 transforming...          
12.41                                                                                       
12.41   ⚡ Million.js 2.6.4
12.41   - Tip:     enable { mute: true } to disable info logs
12.41   - Hotline: https://million.dev/hotline 
12.41        
14.28               
14.28  WARN  Browserslist: caniuse-lite is outdated. Please run:
14.28   npx update-browserslist-db@latest
14.28   Why you should do it regularly: https://github.com/browserslist/update-db#readme
14.28      
18.35         
18.35  WARN  ../../node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of erro
r.                                                                
18.35  WARN  ../../node_modules/@tanstack/react-query/build/modern/useSuspenseQueries.js (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of er
ror.
18.35 
18.36 
18.36  WARN  ../../node_modules/@tanstack/react-query/build/modern/useSuspenseInfiniteQuery.js (1:0): Error when using sourcemap for reporting an error: Can't resolve original location
 of error.
18.36 
18.68 ✓ 62 modules transformed.
18.69 
18.69  ERROR  x Build failed in 7.07s
18.69 
18.69 
18.69  ERROR  error during build:
18.69 [commonjs--resolver] ENOENT: no such file or directory, scandir '/srv/spacedrive/components'
18.69     at async Object.readdir (node:internal/fs/promises:958:18)
18.69     at async Object.customResolver (file:///srv/spacedrive/apps/web/vite.config.ts.timestamp-1756551662632-90e32e321e5e7.mjs:117:25)
18.69     at async PluginDriver.hookFirstAndGetPlugin (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:20630:28)
18.69     at async resolveId (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:19234:26)
18.69     at async ModuleLoader.resolveId (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:19663:15)
18.69     at async Object.resolveId (file:///srv/spacedrive/node_modules/vite/dist/node/chunks/dep-Cyk9bIUq.js:12833:10)
18.69     at async PluginDriver.hookFirstAndGetPlugin (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:20630:28)
18.69     at async resolveId (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:19234:26)
18.69     at async ModuleLoader.resolveId (file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:19663:15)
18.69     at async file:///srv/spacedrive/node_modules/rollup/dist/es/shared/node-entry.js:19966:50
18.69 
18.79 /srv/spacedrive/apps/web:
18.79  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @sd/web@ build: `vite build`
18.79 Exit status 1
18.82  ELIFECYCLE  Command failed with exit code 1.
------
Dockerfile:55
--------------------
  53 |     ENV NODE_OPTIONS="--max-old-space-size=4096"
  54 |     
  55 | >>> RUN pnpm web build
  56 |     
  57 |     #--
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c pnpm web build" did not complete successfully: exit code: 1

Additional context

No response

Code of Conduct

  • I agree to follow the Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions