I’m trying to deploy Redwood app to Railway using the Dockerfile generated by yarn rw setup docker
command. I’m getting following error: “Cache mounts MUST be in the format --mount=type=cache,id=”. I tried adding cache IDs, after my changes Dockerfile looks like this:
RUN --mount=type=cache,id=cache:yarn,target=/home/node/.yarn/berry/cache,uid=1000 \
--mount=type=cache,id=cache:node,target=/home/node/.cache,uid=1000 \
CI=1 yarn install
But now I’m getting another error: “Cache mount ID is not prefixed with cache key”. Looks like cache IDs that I added already have prefixes. I also tried adding DOCKER_BUILDKIT=1
environment variable, but still getting the same error.
Do you have any suggestions how it can be fixed? Any help appreciated.