3 months ago
During the docker container build step for my API backend service I am seeing 'The command "export" does not exist' error message and the build fails. I am guessing this is related to the "New Builder Environment" which I am using as I run migrations during the build step for the API service.
I believe what this is saying is the container was successfully built but when attempting to export it to store in the container registry, it's failing
2 Replies
3 months ago
Nevermind, this was due do me not pinning my poetry version when doing pip install poetry in my API docker file
Poetry@2 was recently released and it includes a breaking change that removes the poetry export command, my build started to fail because it was automatically using poetry@2
The resolution was to pin the poetry version back to 1.8.5 in my dockerfile -- (RUN pip install poetry==1.8.5)
Status changed to Awaiting User Response railway[bot] • 3 months ago
Status changed to Solved brody • 3 months ago