Can't use curl in n8n on Railway โ€“ using official Docker image

ndhassanHOBBY

25 days ago

Hey Railway team! ๐Ÿ‘‹

Iโ€™m using the official n8nio/n8n Docker image on Railway and need to use curl in a Shell Command node within n8n.

I tried setting the NIXPACKS_PKGS=curl environment variable, but it seems to have no effect โ€” I believe thatโ€™s because this project is using a prebuilt Docker image and not Nixpacks.

Is there any way I can install or use curl in my existing Railway project, or do I need to create a custom Docker image and redeploy n8n through GitHub?

Iโ€™d really appreciate any guidance on the best way to handle this within Railway. Thanks a lot in advance! ๐Ÿ™

Solved

0 Replies

ndhassanHOBBY

25 days ago

how to get it


ndhassanHOBBY

25 days ago

N/A


ndhassanHOBBY

25 days ago

0ee304c2-dee3-4a0c-af80-6b5224c62649


ndhassanHOBBY

25 days ago

@Percy


25 days ago

If you are using a Dockerfile ,depending on the base image you're using you may wanna do a apt-get update && apt-get install curl


ndhassanHOBBY

25 days ago

where i can put this, i can't open any terminal in railway


25 days ago

Aren't you using a Dockerfile?


ndhassanHOBBY

25 days ago

1359902241682751700


25 days ago

Could u paste your Dockerfile here?


ndhassanHOBBY

25 days ago

how to do that


25 days ago

Before that, explain to me what that "Dockerfile" service is supposed to be doing


ndhassanHOBBY

25 days ago

the Dockerfile is acting as n8n worker


ndhassanHOBBY

25 days ago

i created eveything from railway app


25 days ago

How so? does it has any env vars set? It is a github repo, inside it you should have a Dockerfile


ndhassanHOBBY

25 days ago

how to add this charts to my github so i can check the Docker


ndhassanHOBBY

25 days ago

thats what i get when i put deploy worker

1359903516331872300


25 days ago

Here you are deploying the template, looks good so far


ndhassanHOBBY

25 days ago

yes i want to add curl to this template


ndhassanHOBBY

25 days ago

since its not supporting it


ndhassanHOBBY

25 days ago

and what i understood is that the docker conatines n8n image


25 days ago

Oh now I get it


25 days ago

U would need to create your own Dockerfile and replace the main service with it (which is what you're trying to do)


25 days ago

I still need to see what your custom Dockerfile looks like


ndhassanHOBBY

25 days ago

is there a guide i can read that can help me, i have been searching hours ago


ndhassanHOBBY

25 days ago

the one i tried adding using github?


25 days ago

yes.


25 days ago

This isn't directly related to Railway so it would be better asked in n8n


ndhassanHOBBY

25 days ago

1359904800497471700


25 days ago

maybe someone already had this issue of yours


ndhassanHOBBY

25 days ago

okay thank you


25 days ago

I will mark this thread as solved, feel free to open a new one if you find any issue!


25 days ago

!s


Status changed to Solved medim โ€ข 25 days ago