I tried to deploy my shopify nodejs app using theme app extension to Heroku. But I have error when I push heroku master:
My Dockerfile is:
FROM node:18-alpine
ARG SHOPIFY_API_KEY
ENV SHOPIFY_API_KEY=$SHOPIFY_API_KEY
EXPOSE 8081
WORKDIR /app
COPY web .
RUN npm install
RUN cd frontend && npm install && npm run build
CMD ["npm", "run", "serve"]
FROM ruby:3.1-bullseye
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
apt-get install -y nodejs
WORKDIR /app
COPY . .
RUN npm ci && npm run build
I would appreciate it if you could teach me how to solve it and if you have experience deploying on heroku. Thank you very much.

