crospts: Fix Dockerfile to build arm64 image
The docker build image needs to pull Ubuntu image from `arm64v8/ubuntu`.
Add build argument `--build-arg ARCH=arm64v8` for building the arm image.
Also, add a workaround for apt-get install segmentation fault issue
which to remove libc-bin files and restore it after apt-get install.
BUG=b:312817491
TEST=ran docker build -t ptsworld-arm64 build --build-arg ARCH=arm64v8/
Change-Id: I7e99625517ff93c90ef99264407cdf7bf33f9406
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crospts/+/5056787
Tested-by: Darren Wu <darrenwu@chromium.org>
Reviewed-by: Darren Wu <darrenwu@chromium.org>
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: Darren Wu <darrenwu@chromium.org>
2 files changed