update Dockerfile for ARM compatibility

This commit is contained in:
Ian Kay 2023-10-18 09:16:16 -04:00
parent aaa4459655
commit 925abd314b

View File

@ -5,7 +5,8 @@ ADD . /go/src/github.com/cerc-io/ipld-eth-db
# Get migration tool # Get migration tool
WORKDIR / WORKDIR /
ARG GOOSE_VER="v3.6.1" ARG GOOSE_VER="v3.6.1"
ADD https://github.com/pressly/goose/releases/download/${GOOSE_VER}/goose_linux_x86_64 ./goose RUN arch=$(arch | sed s/aarch64/arm64/) && \
wget -O ./goose https://github.com/pressly/goose/releases/download/${GOOSE_VER}/goose_linux_${arch}
RUN chmod +x ./goose RUN chmod +x ./goose
# app container # app container