Can't use curl in n8n on Railway – using official Docker image
ndhassan
HOBBYOP

10 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

32 Replies

ndhassan
HOBBYOP

10 months ago

how to get it


ndhassan
HOBBYOP

10 months ago

N/A


ndhassan
HOBBYOP

10 months ago

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


ndhassan
HOBBYOP

10 months ago

@Percy


medim
MODERATOR

10 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
HOBBYOP

10 months ago

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


medim
MODERATOR

10 months ago

Aren't you using a Dockerfile?


ndhassan
HOBBYOP

10 months ago

1359902241682751700


medim
MODERATOR

10 months ago

Could u paste your Dockerfile here?


ndhassan
HOBBYOP

10 months ago

how to do that


medim
MODERATOR

10 months ago

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


ndhassan
HOBBYOP

10 months ago

the Dockerfile is acting as n8n worker


ndhassan
HOBBYOP

10 months ago

i created eveything from railway app


medim
MODERATOR

10 months ago

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


ndhassan
HOBBYOP

10 months ago

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


ndhassan
HOBBYOP

10 months ago

thats what i get when i put deploy worker

1359903516331872300


medim
MODERATOR

10 months ago

Here you are deploying the template, looks good so far


ndhassan
HOBBYOP

10 months ago

yes i want to add curl to this template


ndhassan
HOBBYOP

10 months ago

since its not supporting it


ndhassan
HOBBYOP

10 months ago

and what i understood is that the docker conatines n8n image


medim
MODERATOR

10 months ago

Oh now I get it


medim
MODERATOR

10 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)


medim
MODERATOR

10 months ago

I still need to see what your custom Dockerfile looks like


ndhassan
HOBBYOP

10 months ago

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


ndhassan
HOBBYOP

10 months ago

the one i tried adding using github?


medim
MODERATOR

10 months ago

yes.


medim
MODERATOR

10 months ago

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


ndhassan
HOBBYOP

10 months ago

1359904800497471700


medim
MODERATOR

10 months ago

maybe someone already had this issue of yours


ndhassan
HOBBYOP

10 months ago

okay thank you


medim
MODERATOR

10 months ago

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


medim
MODERATOR

10 months ago

!s


Status changed to Solved medim 10 months ago


Loading...