a month ago
Getting unknown pnpm build error only on Railway when trying to deploy project. Docker build works fine locally
Tried: using Railpack / nixpacks / custom Dockerfile
1 Replies
a month ago
Please share the entire build logs and the source repository if possible.
a month ago
I can also chat with you here :P
a month ago
This message was from me FYI
a month ago
Can you send your Dockerfile please?
FROM node:20.13.1-alpine AS base
WORKDIR /app
COPY package.json pnpm-lock.yaml* ./
RUN corepack enable && corepack prepare pnpm@9.1.1 --activate
FROM base AS deps
RUN apk add --no-cache python3 make g++
RUN pnpm install --frozen-lockfile --ignore-scripts
FROM base AS build
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm prisma generate
RUN pnpm build
FROM base AS runtime
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
COPY --from=build /app/libs ./libs
EXPOSE 3001
CMD ["node", "dist/apps/steam/main"]a month ago
Assuming this is closed source?
a month ago
Hmmm
a month ago
Can I see your .gitignore file? Is it possible you've forgotten to commit some files?
a month ago
Is there a .dockerignore file present?
One of our devs updated to 6.x.x "prisma-client" engine but didn't update the imports to use the now-required output folder as the import source for the models
For some reason building it locally worked, but it failed on railway not sure why
Status changed to Solved noahd • about 1 month ago