openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

hi alexellis,i'm trying to build a arm64 image with openfaas by using the common templates,but it failed,could you #274

Closed cryLuantic closed 2 years ago

cryLuantic commented 2 years ago

Expected Behaviour

Current Behaviour

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

List All Possible Solutions and Workarounds

Which Solution Do You Recommend?

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

cryLuantic commented 2 years ago

here is my respoense code:

[0] > Building add. Clearing temporary build folder: ./build/add/ Preparing: ./add/ build/add/function Building: myw/add:latest with python template. Please wait.. Sending build context to Docker daemon 8.192kB Step 1/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog ---> 6f97aa96da81 Step 2/31 : FROM --platform=${TARGETPLATFORM:-linux/amd64} python:2.7-alpine ---> 8579e446340f Step 3/31 : ARG TARGETPLATFORM ---> Using cache ---> a75f5a062540 Step 4/31 : ARG BUILDPLATFORM ---> Using cache ---> c90a8309e851 Step 5/31 : ARG ADDITIONAL_PACKAGE ---> Using cache ---> 4ee3e6fab2a3 Step 6/31 : COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog ---> Using cache ---> 33d972637c65 Step 7/31 : RUN chmod +x /usr/bin/fwatchdog ---> Running in 6204e8546454 standard_init_linux.go:219: exec user process caused: exec format error The command '/bin/sh -c chmod +x /usr/bin/fwatchdog' returned a non-zero code: 1 [0] < Building add done in 0.54s. [0] Worker done.

Total build time: 0.54s Errors received during build: