Referring to a repo file from .devcontainer/Dockerfile #80438
-
Select Topic AreaQuestion BodyI'm trying to set up a codespace that comes with the current repo's dependencies installed. This is an R package; dependencies are described in a top-level file DESCRIPTION. To get an accurate picture of what dependencies are needed for the image, then, I need to be able to read the DESCRIPTION file while building the image. Here's what I see as options / what I've tried
Is there some other way to square the circle here that I'm missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I found my answer: set https://containers.dev/implementors/json_reference/#image-specific Here are tons of similar examples: https://github.com/search?q=path%3Adevcontainer+%2F%5B%22%27%5Dcontext%5B%27%22%5D%3A%5Cs*%5B%22%27%5D%5B.%5D%5B.%5D%5B%22%27%5D%2F&type=code |
Beta Was this translation helpful? Give feedback.
I think I found my answer: set
build.context
to".."
.https://containers.dev/implementors/json_reference/#image-specific
Here are tons of similar examples: https://github.com/search?q=path%3Adevcontainer+%2F%5B%22%27%5Dcontext%5B%27%22%5D%3A%5Cs*%5B%22%27%5D%5B.%5D%5B.%5D%5B%22%27%5D%2F&type=code