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

ndhassan
HOBBY

3 months 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

ndhassan
HOBBY

3 months ago

how to get it


ndhassan
HOBBY

3 months ago

N/A


ndhassan
HOBBY

3 months ago

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


ndhassan
HOBBY

3 months ago

@Percy


3 months 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


ndhassan
HOBBY

3 months ago

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


3 months ago

Aren't you using a Dockerfile?


ndhassan
HOBBY

3 months ago

1359902241682751700


3 months ago

Could u paste your Dockerfile here?


ndhassan
HOBBY

3 months ago

how to do that


3 months ago

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


ndhassan
HOBBY

3 months ago

the Dockerfile is acting as n8n worker


ndhassan
HOBBY

3 months ago

i created eveything from railway app


3 months ago

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


ndhassan
HOBBY

3 months ago

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


ndhassan
HOBBY

3 months ago

thats what i get when i put deploy worker

1359903516331872300


3 months ago

Here you are deploying the template, looks good so far


ndhassan
HOBBY

3 months ago

yes i want to add curl to this template


ndhassan
HOBBY

3 months ago

since its not supporting it


ndhassan
HOBBY

3 months ago

and what i understood is that the docker conatines n8n image


3 months ago

Oh now I get it


3 months ago

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


3 months ago

I still need to see what your custom Dockerfile looks like


ndhassan
HOBBY

3 months ago

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


ndhassan
HOBBY

3 months ago

the one i tried adding using github?


3 months ago

yes.


3 months ago

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


ndhassan
HOBBY

3 months ago

1359904800497471700


3 months ago

maybe someone already had this issue of yours


ndhassan
HOBBY

3 months ago

okay thank you


3 months ago

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


3 months ago

!s


Status changed to Solved medim โ€ข 3 months ago