devcontainers / devcontainers/features

Mount volume during docker build so features can use it

Open
#1,145 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

I'd like to be able to mount some files which then be later used during feature installation.

Currently I add those files to the host workspace and mount it with `workspaceMount` but obviously it's not available in the feature build step.

I can see that within the BuildKit there is an option that we can leverage:
https://docs.docker.com/reference/dockerfile/#run---mount

Is there any way I can achieve that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.