Skip to content

Commit b8f7eb1

Browse files
committed
Use the docker API to set the target platform.
Instead of using the template for this.
1 parent 6603aca commit b8f7eb1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cloudknot/dockerimage.py

+1
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ def build(self, tags, image_name=None, nocache=False):
696696
rm=True,
697697
forcerm=True,
698698
nocache=nocache,
699+
platform="linux/amd64",
699700
)
700701

701702
# Update the config file images list

cloudknot/templates/Dockerfile.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
###############################################################################
55

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

99
# Install python dependencies
1010
COPY requirements.txt /tmp/

0 commit comments

Comments
 (0)