Skip to content

Fails to deploy as a Docker container on a Synology NAS #37

Open
@lockieluke

Description

@lockieluke

How to reproduce:

docker build -t copilot-api .

Error Log:

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.                                                                                                                                                        
            Install the buildx component to build images with BuildKit:                                                                                                                                                                      
            https://docs.docker.com/go/buildx/                                                                                                                                                                                               
                                                                                                                                                                                                                                             
Sending build context to Docker daemon  864.8kB                                                                                                                                                                                              
Step 1/15 : FROM oven/bun:alpine AS builder                                                                                                                                                                                                  
 ---> 88dfff2e7338                                                                                                                                                                                                                           
Step 2/15 : WORKDIR /app                                                                                                                                                                                                                     
 ---> Using cache                                                                                                                                                                                                                            
 ---> 9f5487490ab9                                                                                                                                                                                                                           
Step 3/15 : COPY ./package.json ./bun.lock ./                                                                                                                                                                                                
 ---> Using cache                                                                                                                                                                                                                            
 ---> 73c0902be3c2                                                                                                                                                                                                                           
Step 4/15 : RUN bun install                                                                                                                                                                                                                  
 ---> Running in a79505838926                                                                                                                                                                                                                
bun install v1.2.14 (6a363a38)                                                                                                                                                                                                               
130 | `);                                                                                                                                                                                                                                    
131 |     }                                                                                                                                                                                                                                  
132 |     throw err;                                                                                                                                                                                                                         
133 |   }                                                                                                                                                                                                                                    
134 |   if (stdout !== versionFromPackageJSON) {                                                                                                                                                                                             
135 |     throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);                                                                                                                           
                ^                                                                                                                                                                                                                            
error: Expected "0.25.0" but got ""                                                                                                                                                                                                          
      at validateBinaryVersion (/app/node_modules/esbuild/install.js:135:11)                                                                                                                                                                 
      at <anonymous> (/app/node_modules/esbuild/install.js:285:5)                                                                                                                                                                            
                                                                                                                                                                                                                                             
Bun v1.2.14 (Linux x64 baseline)                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
error: postinstall script from "esbuild" exited with 1                                                                                                                                                                                       
The command '/bin/sh -c bun install' returned a non-zero code: 1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions