You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the image, it raises an error: Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: "/usr/local/node" not found: not found
Found the reason is the Node paths are inconsistent:
cp -rp /tmp/node-v${NODE_VERSION}-linux-x64-musl/* /usr/local && \ use /usr/local
COPY --from=node /usr/local/node /usr/local/node use /usr/local/node
Hi, I'm trying to generate Dockerfile with Alpine:
Node part of the generated Dockfile:
When building the image, it raises an error:
Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: "/usr/local/node" not found: not found
Found the reason is the Node paths are inconsistent:
cp -rp /tmp/node-v${NODE_VERSION}-linux-x64-musl/* /usr/local && \
use/usr/local
COPY --from=node /usr/local/node /usr/local/node
use/usr/local/node
I tried to fix it by modifying the Dockerfile:
It works, but I'm not sure it's the best way.
So please fix it in the generator, thanks.
The text was updated successfully, but these errors were encountered: