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
{{ message }}
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
Dockerfile has seen a recent change added to be able to build image after move to NPM workspaces which implied nodejs bump.
The USER root stanza is needing during the build phase (in the two stages build approach).
But what is really surprising is the latter change is not needed when building image locally using either docker or buildah (on Linux Fedora 34).
At contrary when building remotely (on quay.io for instance) the stanza is needed or the image fails with following error:
We need to find out why there is such different behavior between the remote or local builds and also ultimately not use USER root because there are no reason to.
The text was updated successfully, but these errors were encountered:
In fact, using USER root is ok, as long as you set it back to user 1001 (default id) afterwards. It is usually related to the build platform configuration and there's little you can do about it.
I would assume that the behavior of the similar issue we're facing with npm config set unsafe-perm true (see PR#853) is also dependent on the build plate-form. And since the user applied in the second stage of the build matters.
Dockerfile has seen a recent change added to be able to build image after move to NPM workspaces which implied nodejs bump.
The
USER root
stanza is needing during the build phase (in the two stages build approach).But what is really surprising is the latter change is not needed when building image locally using either
docker
orbuildah
(on Linux Fedora 34).At contrary when building remotely (on quay.io for instance) the stanza is needed or the image fails with following error:
We need to find out why there is such different behavior between the remote or local builds and also ultimately not use
USER root
because there are no reason to.The text was updated successfully, but these errors were encountered: