Deploy to Heroku with theme app extensions

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.

2 Likes

I am experiencing the same issue, did you manage to solve it?

If I remove the theme-extension it works fine as shopify-cli doesn’t try and use ruby.