Skip to content

Commit

Permalink
Specify the platform when building the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartleeks committed Sep 11, 2024
1 parent 0288ac4 commit 2cd1c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/docker-build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo "=="

src_path=$(realpath "$script_dir/../src/aoai-api-simulator")

docker build -t "${acr_login_server}/aoai-api-simulator:$image_tag" "$src_path" -f "$src_path/Dockerfile"
docker build --platform linux/amd64 -t "${acr_login_server}/aoai-api-simulator:$image_tag" "$src_path" -f "$src_path/Dockerfile"

az acr login --name "$acr_name"
docker push "${acr_login_server}/aoai-api-simulator:$image_tag"
Expand Down

0 comments on commit 2cd1c68

Please sign in to comment.