Skip to content

Dockerfile fails to build since last update #94

@samcro1967

Description

@samcro1967

Dockerfile fails to build after the most recent update with the error below.

#13 12.57 cd js && \
#13 12.57 npx webpack --mode=production
#13 12.94 /gotty/js/node_modules/commander/lib/command.js:396
#13 12.94     enableOrNameAndArgs = enableOrNameAndArgs ?? 'help [command]';
#13 12.94                                                ^
#13 12.94 
#13 12.94 SyntaxError: Unexpected token '?'
#13 12.94     at wrapSafe (internal/modules/cjs/loader.js:915:16)
#13 12.94     at Module._compile (internal/modules/cjs/loader.js:963:27)
#13 12.94     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#13 12.94     at Module.load (internal/modules/cjs/loader.js:863:32)
#13 12.94     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
#13 12.94     at Module.require (internal/modules/cjs/loader.js:887:19)
#13 12.94     at require (internal/modules/cjs/helpers.js:74:18)
#13 12.94     at Object.<anonymous> (/gotty/js/node_modules/commander/index.js:2:21)
#13 12.94     at Module._compile (internal/modules/cjs/loader.js:999:30)
#13 12.94     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#13 12.95 npm ERR! code 1
#13 12.95 npm ERR! path /gotty/js
#13 12.95 npm ERR! command failed
#13 12.95 npm ERR! command sh -c webpack "--mode=production"
#13 12.96 
#13 12.96 npm ERR! A complete log of this run can be found in:
#13 12.96 npm ERR!     /root/.npm/_logs/2025-08-04T12_03_50_984Z-debug.log
#13 12.96 make: *** [Makefile:52: bindata/static/js/gotty.js.map] Error 1
#13 ERROR: process "/bin/sh -c CGO_ENABLED=0 make" did not complete successfully: exit code: 2
------
 > [stage-0 5/5] RUN CGO_ENABLED=0 make:
12.94     at Module._compile (internal/modules/cjs/loader.js:999:30)
12.94     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
12.95 npm ERR! code 1
12.95 npm ERR! path /gotty/js
12.95 npm ERR! command failed
12.95 npm ERR! command sh -c webpack "--mode=production"
12.96 
12.96 npm ERR! A complete log of this run can be found in:
12.96 npm ERR!     /root/.npm/_logs/2025-08-04T12_03_50_984Z-debug.log
12.96 make: *** [Makefile:52: bindata/static/js/gotty.js.map] Error 1
------
Dockerfile:6
--------------------
   4 |     COPY . /gotty
   5 |     RUN apt-get update && apt-get install -y nodejs npm
   6 | >>> RUN CGO_ENABLED=0 make
   7 |     
   8 |     FROM alpine:latest
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c CGO_ENABLED=0 make" did not complete successfully: exit code: 2

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