šŸ‹ dockerfile parse error on line 1: unknown instruction:
ninjardx
FREEOP

6 months ago

Hi guys, im trying to deploy a python discord bot onto railway using docker, I have a dockerfile properly setup, but no matter what I do when I try and deploy it, I get this error:
ERROR: failed to solve: dockerfile parse error on line 1: unknown instruction:

Project ID: 01c02565-82f0-4e0e-b82c-29603ae3b5a4

Solved

1 Replies

dev
MODERATOR

6 months ago

mind sharing the dockerfile in question?


ninjardx
FREEOP

6 months ago


ninjardx
FREEOP

6 months ago

šŸ‹ dockerfile parse error on line 1: unknown instruction:


ninjardx
FREEOP

6 months ago

before I go to bed I will also leave this here as the railway error I recieve

1376757515676815400


dev
MODERATOR

6 months ago

this is so strange, file looks fine on my side, correct encoding and no invisible characters from what I can tell <:Thinking:1360710341239242762>


dev
MODERATOR

6 months ago

oddly though, my file hash does not match the one from the logs in your screenshot

I'm not entirely certain the digest log there does point to the file hash, but if it does then it means that the Dockerfile i received and the Dockerfile Railway is seeing is not the same Dockerfile, I don't think Discord alters files when you send them either


ninjardx
FREEOP

6 months ago

maybe I need to reboot my connection with railway and docker as it could have cached a shitty dockerfile?


passos
MODERATOR

6 months ago

Your Dockerfile also seems to be fine by a first look, can you try changing something in your Dockerfile just so that Railway triggers a new cache miss Dockerfile.


passos
MODERATOR

6 months ago

I would also look if you're using the correct branch and maybe even try a deploy through the CLI


dev
MODERATOR

6 months ago

NOTE: the discord <-> help station connection seemingly broke

for anyone who's looking for a solution- OP ended up just not using Dockerfile (or procfile) and letting Nixpacks generate the build plan itself instead


Status changed to Solved dev • 6 months ago


Loading...