I am trying to use the heroku cli in a bun environment.
It works locally, but does not work in the docker container.
(I tried installing it via npm -g too.)
This is my Dockerfile:
FROM oven/bun:1.0.30-debian
# Needed for the node:child_process module, TODO: maybe replace it with a bun specific module in the future
RUN apt-get update && apt-get install -y build-essential
WORKDIR /app
COPY package.json .
COPY bun.lockb .
RUN bun install --production
# Install Heroku CLI
RUN curl https://cli-assets.heroku.com/install.sh | sh
# Add Heroku CLI to the system path
ENV PATH="/usr/local/heroku/bin:${PATH}"
RUN . ~/.bashrc
# Verify Heroku CLI installation
RUN heroku --version
COPY src src
COPY static static
COPY tsconfig.json .
ENV NODE_ENV production
CMD ["bun", "src/index.ts"]
EXPOSE 80
RUN heroku --version
throws
ERROR: failed to solve: process "/bin/sh -c heroku --version" did not complete successfully: exit code: 127