Add support for arm32v7 in Dockerfile

This commit is contained in:
Victor Lavaud 2021-01-14 20:39:43 +01:00 committed by Jake Sylvestre
parent 12abc84cb2
commit e747eb9284

View file

@ -25,6 +25,7 @@ ADD . /app
WORKDIR /app
RUN set -ex \
&& if [ "${ARCH}" = "amd64" ]; then export GOARCH=amd64; fi \
&& if [ "${ARCH}" = "arm32v7" ]; then export GOARCH=arm; fi \
&& if [ "${ARCH}" = "arm64v8" ]; then export GOARCH=arm64; fi \
&& echo "Compiling for $GOARCH" \
&& go install -v . ./cmd/...