Closed fanfanbj closed 6 years ago
source code in Dockerfile will change owner to USER 1001. and location is /opt/app-root directory. and in s2i/assemble script, source code will be installed in ./ directory.
echo "---> Installing application source" cp -Rf /tmp/src/. ./
we need to keep the same location in Dockerfile and assemble script, otherwise, openshift build will fail with permission deny error.
I made this fix. to change Dockerfile as below: RUN chown -R 1001:0 ./
Thank you!
source code in Dockerfile will change owner to USER 1001. and location is /opt/app-root directory. and in s2i/assemble script, source code will be installed in ./ directory.
echo "---> Installing application source" cp -Rf /tmp/src/. ./
we need to keep the same location in Dockerfile and assemble script, otherwise, openshift build will fail with permission deny error.
I made this fix. to change Dockerfile as below: RUN chown -R 1001:0 ./