Build Projects from Different Dockerfiles
Hi guys,
Quick question - is it possible to build multiple different projects from dockerfiles that exist in the same directory?
Given the following folder structure:
My API project is successfully building in railway. The root directory is configured as "/src/server/" .
My Service project however is not building (same root directory configuration as above) when trying to target Dockerfile.test which i specified as a service variable:
RAILWAY_DOCKERFILE_PATH=Dockerfile.test
any ideas on what im doing wrong? Perhaps im misunderstanding this guide:
https://docs.railway.app/guides/dockerfiles
5 Replies
Project ID:
71e9ecca-8ad5-42c6-8450-e3b64ec2edab
71e9ecca-8ad5-42c6-8450-e3b64ec2edab
build error for my service project:
Solution
i think you want
RAILWAY_DOCKERFILE_PATH=/src/server/Dockerfile.test
Ah thanks Brody that was it! I thought configuring the root directory would have me covered there. Thanks again for your time 😃
i know, its odd