#Deployment Failed during build process with nodejs

22 messages · Page 1 of 1 (latest)

lone tusk
#

It's been 11 days since I made a commit and the deployment worked correctly, and today I pushed to my main branch and the publication failed, what could be happening?

young eagleBOT
#

Project ID: a2d0a173-be4f-421a-b1b0-ada4f0b76aa2

lone tusk
#

a2d0a173-be4f-421a-b1b0-ada4f0b76aa2

river dirge
lone tusk
river dirge
#

try adding a nixpacks.toml to your project with this in it

[phases.setup]
nixLibs = ['...', 'zlib']
lone tusk
#

still the same error

I create a file in the root project nixpacks.toml with the code

river dirge
#

can you share your repo?

lone tusk
river dirge
#

i meant a link to your repo

lone tusk
#

its privated

river dirge
#

add me?

lone tusk
#

Yes

river dirge
#

brody192

lone tusk
#

Brody Over?

#

Ready

river dirge
#

what node version do you use locally?

lone tusk
#

v20.10.0

river dirge
#

seems like youre storing uploads in github. you would want to get that removed and make sure to gitignore the contents of that folder

#

delete the nixpacks.toml file and try this Dockerfile instead

FROM node:20.10.0-alpine

ENV NODE_ENV production
ENV NPM_CONFIG_UPDATE_NOTIFIER false
ENV NPM_CONFIG_FUND false

RUN apk add --update --no-cache \
    libuuid \
    build-base \
    pkgconf \
    pixman \
    cairo-dev \
    pango-dev \
    jpeg-dev \
    giflib-dev

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . ./

CMD ["npm", "run", "prod"]
lone tusk
#

Ready, Its Worked

Thanks

river dirge
#

awesome!