Skip to content

Commit a4c3406

Browse files
author
Bas Alberts
committed
Build linux/amd64 docker images exclusively
1 parent 75e0570 commit a4c3406

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docker/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ if [ ! -f ".env" ]; then
44
touch ".env"
55
fi
66
docker run -i \
7+
--platform linux/amd64 \
78
--volume /var/run/docker.sock:/var/run/docker.sock \
89
--volume ./logs:/app/logs \
910
--mount type=bind,src=.env,dst=/app/.env,ro \

release_tools/publish_docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def write_dockerfile(dest_dir, entrypoint):
8181
def build_and_push_image(dest_dir, image_name, tag):
8282
# Build
8383
subprocess.run([
84-
"docker", "build", "-t", f"{image_name}:{tag}", dest_dir
84+
"docker", "buildx", "build", "--platform", "linux/amd64", "-t", f"{image_name}:{tag}", dest_dir
8585
], check=True)
8686
# Push
8787
subprocess.run([

0 commit comments

Comments
 (0)