8 months ago
I am using one Docker file for three services in a project to get Chron to work as I need it to.
I am getting the error "Cache mount ID is not prefixed with cache key" when I use the RAILWAY_SERVICE_ID variable in the mount line in the Dockerfile.
If I need to hardcode the <service id>, how do I do it for all three services? Separate lines or all on the same line? Or another way?
## Cache Mounts
Railway supports cache mounts in your Dockerfile in the following format:
```
--mount=type=cache,id=s/<service id>-<target path>,target=<target path>```
Replace <service id> with the id of the service.
Thanks,
Ryan
1 Replies
8 months ago
Hi, could you share your usage of the RAILWAY_SERVICE_ID variable ?
Have you been able to debug log it in your build step ?
Status changed to Awaiting User Response Railway • 8 months ago
5 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago