How to give relative path for mount in Dockerfile

  docker, dockerfile

Dockerfile Location:
C:projectDockerfilescore

Source code location which i need to mount: C:project

Now, how can i mount SRC location from Dockerfile location:

RUN --mount=source=.,target=/opt/trunk

source=. takes current directory. How to pass here C:project or someting like this ../.. to go back 2 dir up.

Source: Docker Questions

LEAVE A COMMENT