Skip to content

Access denied using this image in a multistage build #1

@EPinci

Description

@EPinci

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:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions