The following code generates an error:
standard_init_linux.go:211: exec user process caused “exec format error”
Any pointers to what I’m doing wrong?
#Begin
FROM golang:alpine AS builder
Set necessary environmet variables needed for our image
ENV GO111MODULE=on
CGO_ENABLED=0
GOOS=linux
GOARCH=amd64
GOARCH=wasm
GOOS=js
Move to working directory /build
WORKDIR /build
Copy the code into the container
COPY . .
Build the application
COPY wasm_exec.js .
COPY server.go .
COPY main.wasm .
COPY manifest.json .
COPY sw.js .
COPY wasm_exec.js .
COPY app.js .
COPY index.html .
EXPOSE 8989
#CMD [“go”, “build”, “-o”, “main.wasm” , “wasm.go”, “.”]
ENTRYPOINT ["./server.go"]