We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f512d97 commit 41d43a3Copy full SHA for 41d43a3
.dagger/src/index.ts
@@ -105,13 +105,13 @@ export class AtomicServer {
105
docsFolder(): Directory {
106
const actualDocsDirectory = this.source.directory("docs");
107
const cargoCache = dag.cacheVolume("cargo");
108
- const cargoBinCache = dag.cacheVolume("cargo-bin");
109
110
const docsContainer = dag
111
.container()
112
.from(RUST_IMAGE)
+ .withExec(["sh", "-c", ". $HOME/.cargo/env"])
113
+ .withEnvVariable("PATH", "$HOME/.cargo/bin:$PATH")
114
.withMountedCache("/usr/local/cargo/registry", cargoCache)
- .withMountedCache("/usr/local/cargo/bin", cargoBinCache)
115
.withExec(["cargo", "install", "mdbook"])
116
.withExec(["cargo", "install", "mdbook-linkcheck"]);
117
return docsContainer
0 commit comments