Skip to content

Commit 77ed499

Browse files
committed
Support --platform and --labels
1 parent 93cb0d7 commit 77ed499

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

repo2docker/docker.py

+7
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ def build(
116116
if tag:
117117
args += ["--tag", tag]
118118

119+
if labels:
120+
for k, v in labels:
121+
args += ["--label", f"{k}={v}"]
122+
123+
if platform:
124+
args += ["--platform", platform]
125+
119126
if fileobj:
120127
with tempfile.TemporaryDirectory() as d:
121128
tarf = tarfile.open(fileobj=fileobj)

0 commit comments

Comments
 (0)