Bot con node
andres-ramirez
HOBBYOP

2 years ago

context: 19136d497fab15e094f7cce4c84d93e8
Nixpacks build failed

╔════════ Nixpacks v1.21.2 ═══════╗

║ setup │ nodejs18, npm-9x ║

║ install │ npm ci ║

║ start │ ║

Error: No start command could be found

mi dockerfile es:

FROM node:20-bullseye as bot
WORKDIR /app

COPY package.json ./
RUN npm install

COPY . .

ARG RAILWAYSTATICURL
ARG PUBLIC_URL
ARG PORT

CMD ["npm", "start"]

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

Solved

5 Replies

andres-ramirez
HOBBYOP

2 years ago

mis log

Attachments


2 years ago

Going forward please use English.

Your package.json is missing a start script.


Status changed to Solved Railway almost 2 years ago


andres-ramirez
HOBBYOP

2 years ago

this is my json script:

"scripts": {
"pre-copy": "cd .. && npm run copy.lib base-baileys-mysql",
"start": "node app.js"
}


2 years ago

Please attach your package.json file.


andres-ramirez
HOBBYOP

2 years ago

I already solved the problem, thx


Loading...