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
I'm trying to use this image in a multi stage build dockerfile.
Since my build containers cannot access docker, I have put something like this:
FROM knsit/docfx:latest AS docfx
WORKDIR /cnt
COPY "BCDocs/Content" .
RUN docfx
in my dockerfile to pull out later the compiled content.
But when it gets to executing the command, docfx errors out with: Error:System.UnauthorizedAccessException: Access to the path "/cnt/obj" is denied.
Is there a way to make it work this way?
Thank you!
The text was updated successfully, but these errors were encountered:
The image uses per default an unpriviledged user docfx to run the commands. Directories under / are normally owned by root which means that that the docfx user won't be allowed to create new files or directories in your working directory.
Did you try something like the following snippet?
FROM knsit/docfx:latest AS docfx
WORKDIR /cnt
USER root
COPY"BCDocs/Content" .
RUN docfx
Hi,
I'm trying to use this image in a multi stage build dockerfile.
Since my build containers cannot access docker, I have put something like this:
in my dockerfile to pull out later the compiled content.
But when it gets to executing the command, docfx errors out with:
Error:System.UnauthorizedAccessException: Access to the path "/cnt/obj" is denied.
Is there a way to make it work this way?
Thank you!
The text was updated successfully, but these errors were encountered: