Skip to content

Commit

Permalink
Support --platform and --labels
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 29, 2025
1 parent 93cb0d7 commit 77ed499
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions repo2docker/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ def build(
if tag:
args += ["--tag", tag]

if labels:
for k, v in labels:
args += ["--label", f"{k}={v}"]

if platform:
args += ["--platform", platform]

if fileobj:
with tempfile.TemporaryDirectory() as d:
tarf = tarfile.open(fileobj=fileobj)
Expand Down

0 comments on commit 77ed499

Please sign in to comment.