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

a year 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

a year ago

how to get it


ndhassan
HOBBYOP

a year ago

N/A


ndhassan
HOBBYOP

a year ago

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


ndhassan
HOBBYOP

a year ago

@Percy


a year 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

a year ago

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


a year ago

Aren't you using a Dockerfile?


ndhassan
HOBBYOP

a year ago

1359902241682751700


a year ago

Could u paste your Dockerfile here?


ndhassan
HOBBYOP

a year ago

how to do that


a year ago

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


ndhassan
HOBBYOP

a year ago

the Dockerfile is acting as n8n worker


ndhassan
HOBBYOP

a year ago

i created eveything from railway app


a year ago

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


ndhassan
HOBBYOP

a year ago

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


ndhassan
HOBBYOP

a year ago

thats what i get when i put deploy worker

1359903516331872300


a year ago

Here you are deploying the template, looks good so far


ndhassan
HOBBYOP

a year ago

yes i want to add curl to this template


ndhassan
HOBBYOP

a year ago

since its not supporting it


ndhassan
HOBBYOP

a year ago

and what i understood is that the docker conatines n8n image


a year ago

Oh now I get it


a year ago

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


a year ago

I still need to see what your custom Dockerfile looks like


ndhassan
HOBBYOP

a year ago

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


ndhassan
HOBBYOP

a year ago

the one i tried adding using github?


a year ago

yes.


a year ago

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


ndhassan
HOBBYOP

a year ago

1359904800497471700


a year ago

maybe someone already had this issue of yours


ndhassan
HOBBYOP

a year ago

okay thank you


a year ago

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


a year ago

!s


Status changed to Solved medim 11 months ago


Loading...