Docker build cache issue
https://docs.railway.app/guides/dockerfiles
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.
build logs
why RAILWAY_SERVICE_ID can not be retrieved in build time?
5 Replies
Project ID:
b2612e07-ca79-4076-a659-4eed5a972428
b2612e07-ca79-4076-a659-4eed5a972428
that is not supported syntax, you need to hardcode the service id
I think the docs need to clarify this details
Replace <service id> with the id of the service.