Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Docker platform to gain compatibility with Apple silicon #87

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# To build run 'docker build . -t openchat'
FROM ubuntu:22.04 as builder
FROM ubuntu:22.04 AS builder
SHELL ["bash", "-c"]

ARG git_commit_id
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker-build-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ done

echo "CommitId: $GIT_COMMIT_ID"

docker build -t event_store --build-arg git_commit_id=$GIT_COMMIT_ID --build-arg rustflags="$RUSTFLAGS" . || exit 1
docker build -t event_store --build-arg git_commit_id=$GIT_COMMIT_ID --build-arg rustflags="$RUSTFLAGS" --platform linux/amd64 . || exit 1

container_id=$(docker create event_store)
rm -rf wasms
Expand Down
Loading