Skip to content

Commit

Permalink
Fix passing env vars example
Browse files Browse the repository at this point in the history
The current example does not compile, suggested a fix.
  • Loading branch information
borod108 committed Jun 1, 2023
1 parent 08a56c9 commit f5df534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/features/build_from_dockerfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ ARG FOO
You can specify them like:

```go
val := "BAR"
req := ContainerRequest{
FromDockerfile: testcontainers.FromDockerfile{
Context: "/path/to/build/context",
Dockerfile: "CustomDockerfile",
BuildArgs: map[string]*string {
"FOO": "BAR",
"FOO": &val,
},
},
}
Expand Down

0 comments on commit f5df534

Please sign in to comment.