Skip to content

Commit

Permalink
Use the docker API to set the target platform.
Browse files Browse the repository at this point in the history
Instead of using the template for this.
  • Loading branch information
arokem authored and maouw committed Mar 25, 2024
1 parent dd2cf64 commit 9440418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cloudknot/dockerimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ def build(self, tags, image_name=None, nocache=False):
rm=True,
forcerm=True,
nocache=nocache,
platform="linux/amd64",
)

# Update the config file images list
Expand Down
2 changes: 1 addition & 1 deletion cloudknot/templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
###############################################################################

# Use official python base image
FROM ${base_image} --platform=linux/amd64
FROM ${base_image}

# Install python dependencies
COPY requirements.txt /tmp/
Expand Down

0 comments on commit 9440418

Please sign in to comment.