dockerfile build error
adrian-estielle
HOBBYOP

5 months ago

hello, i am having soem trouble - it keeps saying '\backend\Dockerfile does not exist, however it does, i've checked case and all that - any guidance? sweat emojisweat emoji

Closed$10 Bounty

7 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


5 months ago

Can you share what you have your root directory set to as well as the repository if possible?

If the repository is private, please share the Dockerfile.


samgordon

Can you share what you have your root directory set to as well as the repository if possible?If the repository is private, please share the Dockerfile.

adrian-estielle
HOBBYOP

5 months ago

railway.toml and the env variable direct to backend/Dockerfile

[build]

builder = "DOCKERFILE"

dockerfilePath = "backend/Dockerfile"

root is the appropriate directory

Attachments


adrian-estielle
HOBBYOP

5 months ago

1 yea, i explored that exhaustively: root directory
/

(razzberry-backend)/backend/Dockerfile (root is the appropriate folder)

2 i am doing this on windows (wsl ubuntu), but had been in powershell/vs code (powershell, git, and wsl ubuntu. kinda migrated between)

but should that matter? i mean, railway is going off github, which i always thought of as OS agnostic, and it just matters that the syntax to the appropriate language is accurate

3 yea, checked that as well. checked to make sure its not still a pending commit, etc.

:: archangel@DESKTOP-CNOVKBH:/mnt/c/src/razzberry-backend$ ls backend

Dockerfile docker-entrypoint.sh node_modules scripts

ai-wingman.ps1 docs package.json services

diagnostic-report-2025-08-08T21-50-58-962Z.json index.js prisma src

diagnostic-report-2025-08-09T09-08-20-789Z.json map-service.ps1 routes worker

docker-compose.yml contents:

services:

db:

image: postgres:15

container_name: razzberry-postgres

restart: unless-stopped

environment:

POSTGRES_USER: postgres

POSTGRES_PASSWORD: postgres

POSTGRES_DB: postgres

ports:

- "5432:5432"

volumes:

- pgdata:/var/lib/postgresql/data

volumes:

pgdata:


samgordon

Can you share what you have your root directory set to as well as the repository if possible?If the repository is private, please share the Dockerfile.

adrian-estielle
HOBBYOP

5 months ago

i dont mind adding as a collaborator to view, otherwise the attached screenshot may help somewhat

Attachments


adrian-estielle
HOBBYOP

5 months ago

nvm, still have the issue, though ti did away with it


adrian-estielle

nvm, still have the issue, though ti did away with it

5 months ago

Have you tried removing the railway.toml value and setting the root directory to just /backend?


Status changed to Closed noahd 5 months ago


Loading...