Docker & ECS - Error: Dynamic require of "crypto" is not supported
Hello! Has anyone faced this problem?
I'm trying to deploy using AWS ECS + ECR + Docker.
Here's my dockerfile
I'm trying to deploy using AWS ECS + ECR + Docker.
Here's my dockerfile
Error: Dynamic require of "crypto" is not supported
at file:///usr/app/.mastra/output/node_modules/@mastra/upstash/dist/chunk-HSTZWXH7.js:11:9FROM node:20-alpine
RUN mkdir -p /usr/app
WORKDIR /usr/app
COPY package.json /usr/app/
RUN npm install
COPY ./src /usr/app/src
COPY ./supabase /usr/app/supabase
COPY ./us-east-2-bundle.pem /usr/app
EXPOSE 4111
RUN npm run build
CMD ["node", "--import=./.mastra/output/instrumentation.mjs", ".mastra/output/index.mjs"]