#Deployment Failed during build process with nodejs
22 messages · Page 1 of 1 (latest)
Project ID: a2d0a173-be4f-421a-b1b0-ada4f0b76aa2
a2d0a173-be4f-421a-b1b0-ada4f0b76aa2
full build logs please https://bookmarklets.up.railway.app/log-downloader/
try adding a nixpacks.toml to your project with this in it
[phases.setup]
nixLibs = ['...', 'zlib']
still the same error
I create a file in the root project nixpacks.toml with the code
can you share your repo?
i meant a link to your repo
its privated
add me?
Yes
brody192
what node version do you use locally?
v20.10.0
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"]
Ready, Its Worked
Thanks
awesome!