R
Railway2y ago
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
Percy2y ago
Project ID: 000f393c-a536-44d1-b400-feb6a78de9b9
Gaura
GauraOP2y ago
000f393c-a536-44d1-b400-feb6a78de9b9
Brody
Brody2y ago
this is not supported at the moment
Gaura
GauraOP2y ago
can I run commands from a justfile instead of dockerfile?
Brody
Brody2y 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
Gaura
GauraOP2y ago
wait wdym by "during build" oh
Gaura
GauraOP2y ago
perfect this should work tysm
Brody
Brody2y ago
you can't do a custom "docker run" command though, that's what you where asking right?
Gaura
GauraOP2y 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
Brody2y ago
you can't modify the initial docker run command
Gaura
GauraOP2y ago
oh
Brody
Brody2y ago
if you have a dockerfile it will use the dockerfile above all else
Gaura
GauraOP2y ago
ahh okay cool ty
Brody
Brody2y ago
no problem
Want results from more Discord servers?
Add your server