Change Docker build context to repo root #18008
Unanswered
4310V343k
asked this question in
Codespaces
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When rebuilding a container, it would be very nice to have the root of the repository set as the root of the Docker build context. So, instead of the command looking like this
docker build -f /path/to/repo/reponame/.devcontainer/Dockerfile -t vsc-*** /path/to/repo/reponame/.devcontainerIt would look like this
docker build -f /path/to/repo/reponame/.devcontainer/Dockerfile -t vsc-*** /path/to/repo/reponameThis will allow us to get versions of dependencies from the repo, for example a dependencies.sh file
Example
Beta Was this translation helpful? Give feedback.
All reactions