Add support for arm32v7 in Dockerfile
This commit is contained in:
parent
12abc84cb2
commit
e747eb9284
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& if [ "${ARCH}" = "amd64" ]; then export GOARCH=amd64; fi \
|
&& if [ "${ARCH}" = "amd64" ]; then export GOARCH=amd64; fi \
|
||||||
|
&& if [ "${ARCH}" = "arm32v7" ]; then export GOARCH=arm; fi \
|
||||||
&& if [ "${ARCH}" = "arm64v8" ]; then export GOARCH=arm64; fi \
|
&& if [ "${ARCH}" = "arm64v8" ]; then export GOARCH=arm64; fi \
|
||||||
&& echo "Compiling for $GOARCH" \
|
&& echo "Compiling for $GOARCH" \
|
||||||
&& go install -v . ./cmd/...
|
&& go install -v . ./cmd/...
|
||||||
|
|
Loading…
Reference in a new issue