I tried to create a docker image based on alpine, but whenever I try to run it, I get this error message: standard_init_linux.go:219: exec user process caused: exec format error.
Here's the basic Dockerfile that just runs an executable file:
FROM alpine:3.13.5
WORKDIR /usr/local/bin
COPY profiles-svc /usr/local/bin
EXPOSE 20002/tcp
ENTRYPOINT ["/usr/local/bin/profiles-svc"]
The profiles-svc is an executable generated by the go build command.
I did not notice this issue on my ubuntu laptop, happens only on the Macbook M1.
Thanks in advance for the help!