Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Added architecture check to git-tar dockerfile.
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Gupta<r.g.gupta@outlookk.com>
  • Loading branch information
zeerorg committed Feb 21, 2019
1 parent b06e311 commit 3ec11da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-tar/Dockerfile
Expand Up @@ -2,8 +2,9 @@ FROM golang:1.10.4-alpine3.7 as build

RUN apk --no-cache add curl \
&& echo "Pulling watchdog binary from GitHub." \
&& curl -sSL https://github.com/openfaas/faas/releases/download/0.9.5/fwatchdog-armhf > /usr/bin/fwatchdog \
&& curl -sSL https://github.com/openfaas/faas-cli/releases/download/0.7.3/faas-cli-armhf > /usr/local/bin/faas-cli \
&& if [ "$(uname -m)" = "armv7l" ]; then arch="-armhf"; else arch=""; fi \ # set architecture based on the image
&& curl -sSL https://github.com/openfaas/faas/releases/download/0.9.5/fwatchdog$arch > /usr/bin/fwatchdog \
&& curl -sSL https://github.com/openfaas/faas-cli/releases/download/0.7.3/faas-cli$arch > /usr/local/bin/faas-cli \
&& chmod +x /usr/bin/fwatchdog \
&& chmod +x /usr/local/bin/faas-cli \
&& apk del curl --no-cache
Expand Down

0 comments on commit 3ec11da

Please sign in to comment.