R
Railway16mo ago
RB_Gaura

how to run custom build command

i have a custom command to spin up the docker container, how can I run this intead of the default?
15 Replies
Percy
Percy16mo ago
Project ID: 000f393c-a536-44d1-b400-feb6a78de9b9
RB_Gaura
RB_Gaura16mo ago
000f393c-a536-44d1-b400-feb6a78de9b9
Brody
Brody16mo ago
this is not supported at the moment
RB_Gaura
RB_Gaura16mo ago
can I run commands from a justfile instead of dockerfile?
Brody
Brody16mo ago
you can only specify commands that run during build or after the image is built you can specify extra commands in a nixpacks.toml file
RB_Gaura
RB_Gaura16mo ago
wait wdym by "during build" oh
Brody
Brody16mo ago
RB_Gaura
RB_Gaura16mo ago
perfect this should work tysm
Brody
Brody16mo ago
you can't do a custom "docker run" command though, that's what you where asking right?
RB_Gaura
RB_Gaura16mo ago
wouldn't I did it inside the nixpacks.toml file? i just tried and it failed bcz it's still defaulting to dockerfile
Brody
Brody16mo ago
you can't modify the initial docker run command
RB_Gaura
RB_Gaura16mo ago
oh
Brody
Brody16mo ago
if you have a dockerfile it will use the dockerfile above all else
RB_Gaura
RB_Gaura16mo ago
ahh okay cool ty
Brody
Brody16mo ago
no problem