R
Railway16mo ago
elieh

Multistage docker builds

Hi! We use a multistage docker build as described here: https://docs.docker.com/language/golang/build-images/#multi-stage-builds Is this possible with Railway and are there any catches?
Docker Documentation
Build your Go image
Learn how to build your first Docker image by writing a Dockerfile
8 Replies
Percy
Percy16mo ago
Project ID: 20ec97d6-7eaa-445a-911a-589b8c86d32f
elieh
elieh16mo ago
Project: 20ec97d6-7eaa-445a-911a-589b8c86d32f
Brody
Brody16mo ago
I use multistage docker builds and I've never had a problem, are you running into any problems or just inquiring?
elieh
elieh16mo ago
Just inquiring, assumed there would need to be a way to pass the "target" to railway How does it know what stage to deploy?
Brody
Brody16mo ago
the last stage where the entrypoint or cmd commands are
elieh
elieh16mo ago
got it, alright thanks!
Brody
Brody16mo ago
no problem!