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 committed Mar 19, 2024
1 parent 6603aca commit b8f7eb1
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 b8f7eb1

Please sign in to comment.