I have been troubleshooting this for hours, I cannot understand it. The Dockerfile contains:
FROM node:16.13-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "./bin/www" ]
I am running a fairly simple express app. when I go to http://localhost after running it on host port 80 it works. Then I push the image to ECR, create a task definition with appropriate security groups, roles, etc, and use it to launch a service. The service continually attempts to launch the task, which immediately stops with
standard_init_linux.go:228: exec user process caused: exec format error
My local machine is a Mac running on M1. Let me know if there is any additional information that would. help diagnose this issue.
Any help is greatly appreciated. peace