[Python] I'm having trouble starting to build my Dockerfile to deploy on Railway

Discussão em 'Python' iniciado por Stack, Novembro 27, 2025.

  1. Stack

    Stack Membro Participativo

    My Dockerfile is in the root project directory, and railway.json is also in the root directory.

    Problem: Railway It won't let me build. Message:


    Dockerfile "Dockerfile does not exist"
    ​

    appears.

    I'm trying to deploy a Django web application to Railways, but I'm getting that message.

    Everything is in the same directory, both railway.json and the Dockerfile. I've already deleted and recreated the Railways project, but I still can't build.

    {
    "$schema": "https://railway.com/railway.schema.json",
    "build": {
    "builder": "DOCKERFILE",
    "dockerfilePath": "Dockerfile"
    },
    "deploy": {
    "runtime": "V2",
    "numReplicas": 1,
    "sleepApplication": false,
    "useLegacyStacker": false,
    "multiRegionConfig": {
    "us-east4-eqdc4a": {
    "numReplicas": 1
    }
    },
    "restartPolicyType": "ON_FAILURE",
    "restartPolicyMaxRetries": 10
    }
    }

    Continue reading...

Compartilhe esta Página