Skip to content

Commit 978c3a6

Browse files
committed
Updates README with example use of extra Docker args.
1 parent e29f4e6 commit 978c3a6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ custom:
270270
- --compile
271271
```
272272

273+
### Extra Docker arguments
274+
275+
You can specify extra arguments to be passed to [docker build](https://docs.docker.com/engine/reference/commandline/build/) during the build step, and [docker run](https://docs.docker.com/engine/reference/run/) during the dockerized pip install step:
276+
277+
```yaml
278+
custom:
279+
pythonRequirements:
280+
dockerizePip: true
281+
dockerBuildCmdExtraArgs: ["--build-arg", "MY_GREAT_ARG=123"]
282+
dockerRunCmdExtraArgs: ["-v", "${env:PWD}:/my-app"]
283+
```
284+
273285

274286
### Customize requirements file name
275287
[Some `pip` workflows involve using requirements files not named

0 commit comments

Comments
 (0)