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"]
ⓘ Deployment information is only viewable by Project members and Railway admins.
5 Replies
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
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
I already solved the problem, thx