3 days ago
Can't seem to get this build to not error out.
Here is what my package.json looks like
"workspaces": {
"packages": ["apps/*", "packages/*"],
"catalog": {
"drizzle-orm": "^0.44.2",
"pg": "^8.16.0",
"zod": "^3.25.56",
"viem": "^2.31.0",
"hono": "^4.7.11",
"@types/pg": "^8.15.4"
}
},
1 Replies
3 days ago
it doesn't even look like bun is being used, I see npm
2 days ago
Make sure you have bun.lockb
or bun.lock
committed to the repository.
2 days ago
Do you have any of these in addition to that?
2 days ago
Can you share the repository?
2 days ago
Screenshot of the root directory?
2 days ago
🤨
2 days ago
alright let's just do this the boring way
2 days ago
here's a dockerfile!
2 days ago
FROM oven/bun:latest
WORKDIR /app
COPY . .
RUN bun install
CMD ["bun", "run", "start"]
2 days ago
Have you used Dockerfile before?
I'm not really interested in significantly changing how my builds are configured just to get this in
2 days ago
Just create a file named Dockerfile
(no file extension) and drop that content in
2 days ago
Dockerfile is not railway specific and is the industry standard for sharing images
2 days ago
You don't have to change anything other than adding the file
2 days ago
also, if you really do not want a Dockerfile
you can set custom environment variables to force Railway on using Bun.
2 days ago
(dockerfile best)
2 days ago
(Dockerfiles are hard to maintain depending on the project, including a monorepo)
2 days ago
(Seems like a massive skill issue)
2 days ago
depends on how your project runs but it should probably be:
RAILPACK_INSTALL_CMD=bun install
RAILPACK_START_CMD=bun run start
2 days ago
also, did you set any root directory on your Railway service? pretty weird that Railway did not auto detect your code